Skip to content

Commit 8db81c1

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: doc: Update configuration.rst
2 parents 81ed687 + ff68b9f commit 8db81c1

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
@@ -1267,14 +1267,14 @@ namespace ``Symfony\Config``::
12671267
$security->firewall('main')
12681268
->pattern('^/*')
12691269
->lazy(true)
1270-
->anonymous();
1270+
->security(false);
12711271

12721272
$security
12731273
->roleHierarchy('ROLE_ADMIN', ['ROLE_USER'])
12741274
->roleHierarchy('ROLE_SUPER_ADMIN', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'])
12751275
->accessControl()
12761276
->path('^/user')
1277-
->role('ROLE_USER');
1277+
->roles('ROLE_USER');
12781278

12791279
$security->accessControl(['path' => '^/admin', 'roles' => 'ROLE_ADMIN']);
12801280
};

0 commit comments

Comments
 (0)