Skip to content

Commit de4bbdf

Browse files
committed
minor #19398 [Config] Update configuration.rst for example config builder ide helper (chadyred)
This PR was submitted for the 7.1 branch but it was merged into the 6.3 branch instead. Discussion ---------- [Config] Update configuration.rst for example config builder ide helper Hello, I updated the example of the "how to help IDE with bundle configuration", it seems to be just a little bit old Commits ------- fc79c88 doc: Update configuration.rst
2 parents 4a8447c + fc79c88 commit de4bbdf

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)