Skip to content

Commit 3acb0c5

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: doc: Update configuration.rst
2 parents 3ca2487 + 8db81c1 commit 3acb0c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration.rst

+2-2
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)