diff --git a/src/Security/ApiTokenAuthenticator.php b/src/Security/ApiTokenAuthenticator.php index 2287d22..51be79f 100644 --- a/src/Security/ApiTokenAuthenticator.php +++ b/src/Security/ApiTokenAuthenticator.php @@ -108,6 +108,7 @@ class ApiTokenAuthenticator extends AbstractGuardAuthenticator return new JsonResponse($json, JsonResponse::HTTP_UNAUTHORIZED,[], true); } + /** @deprecated use AuthenticatorInterface::createToken() instead */ public function createAuthenticatedToken(UserInterface $user, $providerKey) { $request = $this->requestStack->getCurrentRequest();