* * 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:----Zi7s9FN8aFdh9mOAn1O1CZ7DAJWfhIciYpk0w9N4DR03mpwlNfP/vh9FAxn9C6HNKPhQd0stVgPLX/fF57+tesuuKmF7UTUySDENuGfkCE+Do4se0KgQu+97WEQh3fD86nNd9EOGMMAeuKxV8v2k4wE5KPpKMAhbZB2AYvGItO7Hn3M5d65CGGYTJTs5Brtr94F6lXZrmS64nrgzyrDxrBe52g50Dg+bvywqlHJBexGmpygkT8fW4fhhY+uiTiLC+LbOAc6DKrOAvqBpWRCpxzJOP+o0jAkvaQf6o7fnb//lwbpV7tWehom8Hpb8Y2UlgQ6lNKzTmjMg4fvNnXcM8+VRC7/H/dxlef1VdP6gUPW4np7X6G1A5kAWaRL2wnmDrZhjobqT+VG/9mHgo85rdCw3Kw24alK//8MroqD5mOEyC5+F9huVuD9A8YDa1qUK0KC9UPJgu+csk8mpnYA6VAFaMjvgG5MhkhMVEMKIJO/PGcRj3wlfev0JSbVQ6hNzvnoE50R2EAzvZ4FrKfZ3vRSseq/fliL7GdnnPMuats2VQy0SFLTmRIi/vY439poH3UcSwfkYqYETz3eIxqqfw9FGDjSVqZrFZWKmZg9br55/0wjCFVyrq58v/8j+DSLGWHw3/rw6/EhDx4C1qved0+VltGUVo+d47fICUCG6LMQ=----ATTACHMENT:----MTUyOTM1NDA3MDIzMDE3NSA3NjA5NTU1Njk5OTQ5MzMyIDMwMTg5NDc5MDMwNzUyMTU=