From afbdb637f4012a90e476e4a01220badf35541ea5 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Tue, 31 Oct 2023 09:56:15 +0100 Subject: [PATCH] Remove method for Sf 5.4 compatibility --- src/Symfony/Component/Ldap/Security/LdapAuthenticator.php | 8 -------- .../Security/Http/Tests/Fixtures/DummyAuthenticator.php | 4 ---- 2 files changed, 12 deletions(-) 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 - { - } }