8000 Merge branch '6.4' into 7.2 · symfony/symfony-docs@4ac84e3 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4ac84e3

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: [Security] Chain Providers: Fixing PHP code sample
2 parents 106f088 + 768bdb6 commit 4ac84e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

security/user_providers.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,23 +347,23 @@ providers until the user is found:
347347
return static function (SecurityConfig $security): void {
348348
// ...
349349
350-
$backendProvider = $security->provider('backend_users')
350+
$security->provider('backend_users')
351351
->ldap()
352352
// ...
353353
;
354354
355-
$legacyProvider = $security->provider('legacy_users')
355+
$security->provider('legacy_users')
356356
->entity()
357357
// ...
358358
;
359359
360-
$userProvider = $security->provider('users')
360+
$security->provider('users')
361361
->entity()
362362
// ...
363363
;
364364
365-
$allProviders = $security->provider('all_users')->chain()
366-
->providers([$backendProvider, $legacyProvider, $userProvider])
365+
$security->provider('all_users')->chain()
366+
->providers(['backend_users', 'legacy_users', 'users'])
367367
;
368368
};
369369

0 commit comments

Comments
 (0)
0