Skip to content

Commit d8853e6

Browse files
authored
doc: Update configuration.rst
1 parent 9926b76 commit d8853e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,14 +1291,14 @@ namespace ``Symfony\Config``::
12911291
$security->firewall('main')
12921292
->pattern('^/*')
12931293
->lazy(true)
1294-
->anonymous();
1294+
->security(false);
12951295

12961296
$security
12971297
->roleHierarchy('ROLE_ADMIN', ['ROLE_USER'])
12981298
->roleHierarchy('ROLE_SUPER_ADMIN', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'])
12991299
->accessControl()
13001300
->path('^/user')
1301-
->role('ROLE_USER');
1301+
->roles('ROLE_USER');
13021302

13031303
$security->accessControl(['path' => '^/admin', 'roles' => 'ROLE_ADMIN']);
13041304
};

0 commit comments

Comments
 (0)