* * 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:----rclQdM+QpDSbSffIcXb8NvCUMJBBy5wa+jcgSDL6sB48zGTgCJbE9O66whXKGNLhExboFJwMALdmriVtBXiWDg41mpOC2dDNquS6URT9/kXVCaLNUqrEZ7m2chm8XEoXBq2BlXL5LJd70zDxy4tc30CkiC66o6Fz2epdHvINrxpxhBLCtusixRDdPqzzYR+PyW0fsUaPzBphaZqG1lHvBJmgremStYXi8SNtEdD97Ffiaox2RaWSgs+DilNadw5+Z2dKjG/UWjW4aIyQzoAxy9SJNC6YvhNvEXUy3dPmHHaPy0WIHm08Ekaj1gtk447GSoS71ZFMYv20qKRetzRuzcAdKFB9tzeG4iVTvctzP5uQCj4D3r5axZNPUomDLd4D0s11jnN+OA1CFIMvc3Bi1k0a52JbLlfUjYl5IZIi2JTwcNRaSEq4XI0WPRoXaMMAjC+8tC50c1HN0rhWYUsTHtdQPJrRNhZ/J79Cg2HMzicVBc9SlotTWhoqKB/TIwYmLbT1qkZXDjda41E8w50iZ/VbiRotNEa0uO1XE3k4jNgaBv7neRhU4XshLq6ohO47kDWAqIhT5MQ00ckGO7HAM+YKZ/1p5bNes2gDn1B1nRlQZN/0rC7LmxkPewaBSIgFaV3uiyN78/dGyUCalmqxzYe1Z+UqG+Oe/Q8Ws2Vt/jE=----ATTACHMENT:----OTMyMzIzMDA5NTg4NzUzMCA0MDc3MDg2MzM2NTgxOTQ0IDY4MjgyMjg4MDEzNTk=