8000 fix tests · symfony/symfony@f1372e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1372e4

Browse files
fix tests
1 parent a45d42e commit f1372e4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Symfony/Component/Ldap/Security/LdapUserProvider.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ public function __construct(LdapInterface $ldap, string $baseDn, string $searchD
6262
$this->extraFields = $extraFields;
6363
}
6464

65+
/**
66+
* {@inheritdoc}
67+
*/
68+
public function loadUserByUsername(string $username)
69+
{
70+
trigger_deprecation('symfony/security-core', '5.3', 'Method "%s()" is deprecated, use loadUserByIdentifier() instead.', __METHOD__);
71+
72+
return $this->loadUserByIdentifier($username);
73+
}
74+
6575
public function loadUserByIdentifier(string $identifier): UserInterface
6676
{
6777
try {

0 commit comments

Comments
 (0)
0