Skip to content

Navigation Menu

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 fd0354e

Browse filesBrowse files
committed
Merge branch '7.2' into 7.3
* 7.2: [Security] Chain Providers: Fixing PHP code sample
2 parents c91904c + 4ac84e3 commit fd0354e
Copy full SHA for fd0354e

File tree

1 file changed

+5
-5
lines changed
Filter options

1 file changed

+5
-5
lines changed

‎security/user_providers.rst

Copy file name to clipboardExpand all lines: security/user_providers.rst
+5-5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.