File tree Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -205,29 +205,31 @@ private function createListener()
205
205
}
206
206
}
207
207
208
- class TestAuthenticator implements AuthenticatorInterface
209
- {
210
- public function supports (Request $ request ): ?bool
208
+ if (interface_exists (AuthenticatorInterface::class)) {
209
+ class TestAuthenticator implements AuthenticatorInterface
211
210
{
212
- }
211
+ public function supports (Request $ request ): ?bool
212
+ {
213
+ }
213
214
214
- public function authenticate (Request $ request ): Passport
215
- {
216
- }
215
+ public function authenticate (Request $ request ): Passport
216
+ {
217
+ }
217
218
218
- /**
219
- * @internal for compatibility with Symfony 5.4
220
- */
221
- public function createAuthenticatedToken (PassportInterface $ passport , string $ firewallName ): TokenInterface
222
- {
223
- }
219
+ /**
220
+ * @internal for compatibility with Symfony 5.4
221
+ */
222
+ public function createAuthenticatedToken (PassportInterface $ passport , string $ firewallName ): TokenInterface
223
+ {
224
+ }
224
225
225
- public function onAuthenticationSuccess (Request $ request , TokenInterface $ token , string $ firewallName ): ?Response
226
- {
227
- }
226
+ public function onAuthenticationSuccess (Request $ request , TokenInterface $ token , string $ firewallName ): ?Response
227
+ {
228
+ }
228
229
229
- public function onAuthenticationFailure (Request $ request , AuthenticationException $ exception ): ?Response
230
- {
230
+ public function onAuthenticationFailure (Request $ request , AuthenticationException $ exception ): ?Response
231
+ {
232
+ }
231
233
}
232
234
233
235
public function createToken (Passport $ passport , string $ firewallName ): TokenInterface
You can’t perform that action at this time.
0 commit comments