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 81ed687 + ff68b9f commit 8db81c1Copy full SHA for 8db81c1
configuration.rst
@@ -1267,14 +1267,14 @@ namespace ``Symfony\Config``::
1267
$security->firewall('main')
1268
->pattern('^/*')
1269
->lazy(true)
1270
- ->anonymous();
+ ->security(false);
1271
1272
$security
1273
->roleHierarchy('ROLE_ADMIN', ['ROLE_USER'])
1274
->roleHierarchy('ROLE_SUPER_ADMIN', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'])
1275
->accessControl()
1276
->path('^/user')
1277
- ->role('ROLE_USER');
+ ->roles('ROLE_USER');
1278
1279
$security->accessControl(['path' => '^/admin', 'roles' => 'ROLE_ADMIN']);
1280
};
0 commit comments