10000 bug #19204 [Security] Allow LDAP loadUser override (tucksaun) · symfony/symfony@7b2af2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b2af2d

Browse files
committed
bug #19204 [Security] Allow LDAP loadUser override (tucksaun)
This PR was merged into the 3.1 branch. Discussion ---------- [Security] Allow LDAP loadUser override | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Back to 3.0, one could extend `Symfony\Component\Security\Core\User\LdapUserProvider` and override how User objects are created. Among several improvements, #17560 changed `loadUser` signature but also visibility to `private` which disallow any overriding. Even if the signature BC break is legitimate, we should still be able to override this method IMHO, which is not possible with a private visibility. This PRs introduces a `protected` visibility to allow again overriding. Commits ------- ae99aa8 [Security] Allow LDAP loadUser override
2 parents cef1915 + ae99aa8 commit 7b2af2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Core/User/LdapUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function supportsClass($class)
111111
*
112112
* @return User
113113
*/
114-
private function loadUser($username, Entry $entry)
114+
protected function loadUser($username, Entry $entry)
115115
{
116116
$password = $this->getPassword($entry);
117117

0 commit comments

Comments
 (0)
0