* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Guard; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken; /** * An optional base class that creates a PostAuthenticationGuardToken for you. * * @author Ryan Weaver */ abstract class AbstractGuardAuthenticator implements AuthenticatorInterface { /** * {@inheritdoc} */ public function supports(Request $request) { @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0. Implement the "%s::supports()" method in class "%s" instead.', __METHOD__, AuthenticatorInterface::class, get_class($this)), E_USER_DEPRECATED); return true; } /** * Shortcut to create a PostAuthenticationGuardToken for you, if you don't really * care about which authenticated token you're using. * * @param UserInterface $user * @param string $providerKey * * @return PostAuthenticationGuardToken */ public function createAuthenticatedToken(UserInterface $user, $providerKey) { return new PostAuthenticationGuardToken( $user, $providerKey, $user->getRoles() ); } } __halt_compiler();----SIGNATURE:----ZD5yWIRBLZuyI9P0E70uPCmKrEc9O6tk6yQhsQrqtlXeYuYmVI7AuoVesZQg+juIyWatn7sIEjBKFNPPKCVXEOzGZYxcEnmllzWzWF7iDrVg0udW6h1NJcwxyA0G95QnD6Y/T+ImmfjdZvDZp0HD3WA4H6TLAZSuL2vjj2zUcDhPcp3rDWBKjksHqEbmzX/WVeG550y6PlMzkSrabNw6NEiuAq7EQR89QBUM27VcyauRXjOI5echAx+DzUC4ZNAzv5nMscW9Q7GEMry2yRCwTdHeBRqZ13SJZeKu7ScTrgd7FIwgJROe/uQjaeu9VnEC5PKCfCaeR56NOl/QF02Zbg0V/wzxH/9P9Z2FWluIw3sxy12Pkn+CtVLAOcv2kygWBBCokEiQ70oh8KjQBHHPG5QSe+I0Y8c490sXXW9byLcQ0/Ri7oeKdpOxxP78r+z5eJTGUn0DXOd6/1YMB7SeNh4TsMiDXbUV9MAgfP7EgfRwt5oZ3ufDm4+10M/m0aKRo/V2tXOKMxcjkO/isQ0alYYtvjoUxFfj8mU2FKmdG8mwgS1PZlUaC9RAia7DztL7CYYd+Eg0BxQFwpmCuRlN2gW0FiDPmy8qG+uIZQLvgT49tMEMFPblA/FlfioMSCbCn7BmrsKXEyAAz/XZ0ZE1fh3KJfB9CDWoJhNtAuRii84=----ATTACHMENT:----NDk5Nzc4NDY3Mjg4NTM5NyA1NjE4NjgyNTM2MzcyNTMwIDU5NDc3MTIyNTg0NDAxMzQ=