From 11481a2bc15fad0b2f316c95a09659e30c769f8a Mon Sep 17 00:00:00 2001 From: Ippei Sumida Date: Sat, 18 Dec 2021 08:29:00 +0900 Subject: [PATCH] Change "createAuthenticatedToken" to "createToken" --- security/custom_authenticator.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/custom_authenticator.rst b/security/custom_authenticator.rst index e936ba27493..0ca4913b247 100644 --- a/security/custom_authenticator.rst +++ b/security/custom_authenticator.rst @@ -11,7 +11,7 @@ Authenticators should implement the :class:`Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface`. You can also extend :class:`Symfony\\Component\\Security\\Http\\Authenticator\\AbstractAuthenticator`, -which has a default implementation for the ``createAuthenticatedToken()`` +which has a default implementation for the ``createToken()`` method that fits most use-cases:: // src/Security/ApiKeyAuthenticator.php @@ -347,7 +347,7 @@ would initialize the passport like this:: Besides badges, passports can define attributes, which allows the ``authenticate()`` method to store arbitrary information in the passport to access it from other authenticator methods (e.g. - ``createAuthenticatedToken()``):: + ``createToken()``):: // ... use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;