We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ca2487 + 8db81c1 commit 3acb0c5Copy full SHA for 3acb0c5
configuration.rst
@@ -1291,14 +1291,14 @@ namespace ``Symfony\Config``::
1291
$security->firewall('main')
1292
->pattern('^/*')
1293
->lazy(true)
1294
- ->anonymous();
+ ->security(false);
1295
1296
$security
1297
->roleHierarchy('ROLE_ADMIN', ['ROLE_USER'])
1298
->roleHierarchy('ROLE_SUPER_ADMIN', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'])
1299
->accessControl()
1300
->path('^/user')
1301
- ->role('ROLE_USER');
+ ->roles('ROLE_USER');
1302
1303
$security->accessControl(['path' => '^/admin', 'roles' => 'ROLE_ADMIN']);
1304
};
0 commit comments