Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a91b5a1

Browse filesBrowse files
[Ldap] Fix test
1 parent 5cb4027 commit a91b5a1
Copy full SHA for a91b5a1

File tree

Expand file treeCollapse file tree

1 file changed

+17
-15
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-15
lines changed

‎src/Symfony/Component/Ldap/Tests/Security/CheckLdapCredentialsListenerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Ldap/Tests/Security/CheckLdapCredentialsListenerTest.php
+17-15Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -206,25 +206,27 @@ private function createListener()
206206
}
207207
}
208208

209-
class TestAuthenticator implements AuthenticatorInterface
210-
{
211-
public function supports(Request $request): ?bool
209+
if (interface_exists(AuthenticatorInterface::class)) {
210+
class TestAuthenticator implements AuthenticatorInterface
212211
{
213-
}
212+
public function supports(Request $request): ?bool
213+
{
214+
}
214215

215-
public function authenticate(Request $request): PassportInterface
216-
{
217-
}
216+
public function authenticate(Request $request): PassportInterface
217+
{
218+
}
218219

219-
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
220-
{
221-
}
220+
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
221+
{
222+
}
222223

223-
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
224-
{
225-
}
224+
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
225+
{
226+
}
226227

227-
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
228-
{
228+
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
229+
{
230+
}
229231
}
230232
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.