Skip to content

Commit ff68b9f

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: doc: Update configuration.rst
2 parents bbe2c67 + de4bbdf commit ff68b9f

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)