diff --git a/src/Symfony/Component/Ldap/Security/LdapAuthenticator.php b/src/Symfony/Component/Ldap/Security/LdapAuthenticator.php index c2999e9efc6f1..7e3c91dfdbb7f 100644 --- a/src/Symfony/Component/Ldap/Security/LdapAuthenticator.php +++ b/src/Symfony/Component/Ldap/Security/LdapAuthenticator.php @@ -65,14 +65,6 @@ public function authenticate(Request $request): Passport return $passport; } - /** - * @internal - */ - public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface - { - throw new \BadMethodCallException(sprintf('The "%s()" method cannot be called.', __METHOD__)); - } - public function createToken(Passport $passport, string $firewallName): TokenInterface { return $this->authenticator->createToken($passport, $firewallName); diff --git a/src/Symfony/Component/Security/Http/Tests/Fixtures/DummyAuthenticator.php b/src/Symfony/Component/Security/Http/Tests/Fixtures/DummyAuthenticator.php index 0b221813faebc..6e9b6174f1dca 100644 --- a/src/Symfony/Component/Security/Http/Tests/Fixtures/DummyAuthenticator.php +++ b/src/Symfony/Component/Security/Http/Tests/Fixtures/DummyAuthenticator.php @@ -46,8 +46,4 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio { return null; } - - public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface - { - } }