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 bbe2c67 + de4bbdf commit ff68b9fCopy full SHA for ff68b9f
configuration.rst
@@ -1287,14 +1287,14 @@ namespace ``Symfony\Config``::
1287
$security->firewall('main')
1288
->pattern('^/*')
1289
->lazy(true)
1290
- ->anonymous();
+ ->security(false);
1291
1292
$security
1293
->roleHierarchy('ROLE_ADMIN', ['ROLE_USER'])
1294
->roleHierarchy('ROLE_SUPER_ADMIN', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'])
1295
->accessControl()
1296
->path('^/user')
1297
- ->role('ROLE_USER');
+ ->roles('ROLE_USER');
1298
1299
$security->accessControl(['path' => '^/admin', 'roles' => 'ROLE_ADMIN']);
1300
};
0 commit comments