Skip to content

Commit 7a71d09

Browse files
committed
minor #16303 [Security] Change "createAuthenticatedToken" to "createToken" (Ippey)
This PR was submitted for the 6.0 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Security] Change "createAuthenticatedToken" to "createToken" `AuthenticatorInterface` doesn't have `createAuthenticatedToken` in 6.0. So, I changed "createAuthenticatedToken" to "createToken". Commits ------- 11481a2 Change "createAuthenticatedToken" to "createToken"
2 parents ce5a329 + 11481a2 commit 7a71d09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/custom_authenticator.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Authenticators should implement the
1111
:class:`Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface`.
1212
You can also extend
1313
:class:`Symfony\\Component\\Security\\Http\\Authenticator\\AbstractAuthenticator`,
14-
which has a default implementation for the ``createAuthenticatedToken()``
14+
which has a default implementation for the ``createToken()``
1515
method that fits most use-cases::
1616

1717
// src/Security/ApiKeyAuthenticator.php
@@ -347,7 +347,7 @@ would initialize the passport like this::
347347
Besides badges, passports can define attributes, which allows the
348348
``authenticate()`` method to store arbitrary information in the
349349
passport to access it from other authenticator methods (e.g.
350-
``createAuthenticatedToken()``)::
350+
``createToken()``)::
351351

352352
// ...
353353
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;

0 commit comments

Comments
 (0)