Skip to content

Commit aba14db

Browse files
committed
starting point
1 parent d175640 commit aba14db

16 files changed

+0
-1212
lines changed

app/config/config.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ fos_user:
7575
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
7676
firewall_name: api
7777
user_class: AppBundle\Entity\User
78-
from_email:
79-
address: support@mywebsite.com
80-
sender_name: mr_mailer
81-
service:
82-
mailer: user.mailer.rest
8378

8479

8580
# Nelmio CORS
@@ -109,8 +104,6 @@ fos_rest:
109104
rss: false
110105
mime_types:
111106
json: ['application/json', 'application/x-json']
112-
jpg: ['image/jpeg']
113-
png: ['image/png']
114107
routing_loader:
115108
default_format: json
116109
include_format: false
@@ -120,9 +113,6 @@ fos_rest:
120113
- { path: ^/, priorities: [ json ], fallback_format: json, prefer_extension: true }
121114
exception:
122115
enabled: true
123-
# versioning:
124-
# enabled: true
125-
# default_version: v1
126116

127117

128118
#JMS Serializer

app/config/routing.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +0,0 @@
1-
#fos_user_rest:
2-
# type: rest
3-
# resource: AppBundle\Controller\FosUserRestController
4-
5-
6-
api_login_check:
7-
path: /login_check
8-
9-
routing_rest:
10-
resource: routing_rest.yml
11-
12-
13-
14-
#fos_user:
15-
# resource: "@FOSUserBundle/Resources/config/routing/all.xml"

app/config/routing_rest.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/config/security.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,11 @@ security:
1717
pattern: ^/(_(profiler|wdt)|css|images|js)/
1818
security: false
1919

20-
healthcheck:
21-
pattern: ^/ping$
22-
anonymous: true
23-
24-
api_docs:
25-
pattern: ^/doc
26-
anonymous: true
27-
28-
api_register:
29-
pattern: ^/register
30-
anonymous: true
31-
32-
api_password_reset:
33-
pattern: ^/password/reset
34-
anonymous: true
35-
36-
api_login:
37-
pattern: ^/login
38-
stateless: true
39-
anonymous: true
40-
form_login:
41-
check_path: /login
42-
require_previous_session: false
43-
username_parameter: username
44-
password_parameter: password
45-
success_handler: lexik_jwt_authentication.handler.authentication_success
46-
failure_handler: lexik_jwt_authentication.handler.authentication_failure
47-
logout: true
48-
4920
api:
5021
pattern: ^/
5122
stateless: true
5223
lexik_jwt: ~
5324

5425

5526
access_control:
56-
57-
- { path: ^/ping, role: IS_AUTHENTICATED_ANONYMOUSLY }
58-
- { path: ^/doc, role: IS_AUTHENTICATED_ANONYMOUSLY }
59-
60-
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
61-
- { path: ^/register$, role: IS_AUTHENTICATED_ANONYMOUSLY }
62-
- { path: ^/password/reset, role: IS_AUTHENTICATED_ANONYMOUSLY }
63-
- { path: ^/password/change, role: IS_AUTHENTICATED_FULLY }
6427
- { path: ^/, role: IS_AUTHENTICATED_FULLY }

src/AppBundle/Controller/FosUserRestController.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/AppBundle/Controller/RestLoginController.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)