Skip to content

Commit 03e5666

Browse files
committed
Update Resources/doc/index.md
Organized configuration according to latest security.yml
1 parent 398a844 commit 03e5666

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Resources/doc/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,17 @@ in your application:
243243
``` yaml
244244
# app/config/security.yml
245245
security:
246+
encoders:
247+
FOS\UserBundle\Model\UserInterface: sha512
248+
249+
role_hierarchy:
250+
ROLE_ADMIN: ROLE_USER
251+
ROLE_SUPER_ADMIN: ROLE_ADMIN
252+
246253
providers:
247254
fos_userbundle:
248255
id: fos_user.user_provider.username
249256

250-
encoders:
251-
FOS\UserBundle\Model\UserInterface: sha512
252-
253257
firewalls:
254258
main:
255259
pattern: ^/
@@ -264,10 +268,6 @@ security:
264268
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
265269
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
266270
- { path: ^/admin/, role: ROLE_ADMIN }
267-
268-
role_hierarchy:
269-
ROLE_ADMIN: ROLE_USER
270-
ROLE_SUPER_ADMIN: ROLE_ADMIN
271271
```
272272
273273
Under the `providers` section, you are making the bundle's packaged user provider

0 commit comments

Comments
 (0)