Skip to content

Commit ef3cc76

Browse files
Merge branch '5.3' into 5.4
* 5.3: [Ldap] Fix test Remove flex from appveyor
2 parents 85b5789 + 559b651 commit ef3cc76

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -222,26 +222,28 @@ private function createListener()
222222
}
223223
}
224224

225-
class TestAuthenticator implements AuthenticatorInterface
226-
{
227-
public function supports(Request $request): ?bool
225+
if (interface_exists(AuthenticatorInterface::class)) {
226+
class TestAuthenticator implements AuthenticatorInterface
228227
{
229-
}
228+
public function supports(Request $request): ?bool
229+
{
230+
}
230231

231-
public function authenticate(Request $request): Passport
232-
{
233-
}
232+
public function authenticate(Request $request): Passport
233+
{
234+
}
234235

235-
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
236-
{
237-
}
236+
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
237+
{
238+
}
238239

239-
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
240-
{
241-
}
240+
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
241+
{
242+
}
242243

243-
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
244-
{
244+
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
245+
{
246+
}
245247
}
246248

247249
public function createToken(Passport $passport, string $firewallName): TokenInterface

0 commit comments

Comments
 (0)