File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -222,26 +222,28 @@ private function createListener()
222
222
}
223
223
}
224
224
225
- class TestAuthenticator implements AuthenticatorInterface
226
- {
227
- public function supports (Request $ request ): ?bool
225
+ if (interface_exists (AuthenticatorInterface::class)) {
226
+ class TestAuthenticator implements AuthenticatorInterface
228
227
{
229
- }
228
+ public function supports (Request $ request ): ?bool
229
+ {
230
+ }
230
231
231
- public function authenticate (Request $ request ): Passport
232
- {
233
- }
232
+ public function authenticate (Request $ request ): Passport
233
+ {
234
+ }
234
235
235
- public function createAuthenticatedToken (PassportInterface $ passport , string $ firewallName ): TokenInterface
236
- {
237
- }
236
+ public function createAuthenticatedToken (PassportInterface $ passport , string $ firewallName ): TokenInterface
237
+ {
238
+ }
238
239
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
+ }
242
243
243
- public function onAuthenticationFailure (Request $ request , AuthenticationException $ exception ): ?Response
244
- {
244
+ public function onAuthenticationFailure (Request $ request , AuthenticationException $ exception ): ?Response
245
+ {
246
+ }
245
247
}
246
248
247
249
public function createToken (Passport $ passport , string $ firewallName ): TokenInterface
You can’t perform that action at this time.
0 commit comments