Skip to content

Commit fc79c88

Browse files
chadyredjaviereguiluz
authored andcommitted
doc: Update configuration.rst
1 parent 4a8447c commit fc79c88

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
@@ -1287,14 +1287,14 @@ namespace ``Symfony\Config``::
12871287
$security->firewall('main')
12881288
->pattern('^/*')
12891289
->lazy(true)
1290-
->anonymous();
1290+
->security(false);
12911291

12921292
$security
12931293
->roleHierarchy('ROLE_ADMIN', ['ROLE_USER'])
12941294
->roleHierarchy('ROLE_SUPER_ADMIN', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'])
12951295
->accessControl()
12961296
->path('^/user')
1297-
->role('ROLE_USER');
1297+
->roles('ROLE_USER');
12981298

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

0 commit comments

Comments
 (0)