vendor/symfony/security-core/Authentication/Provider/AuthenticationProviderInterface.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Security\Core\Authentication\Provider;
  11. use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
  12. use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
  13. trigger_deprecation('symfony/security-core', '5.3', 'The "%s" interface is deprecated, use the new authenticator system instead.', AuthenticationProviderInterface::class);
  14. /**
  15. * AuthenticationProviderInterface is the interface for all authentication
  16. * providers.
  17. *
  18. * Concrete implementations processes specific Token instances.
  19. *
  20. * @author Fabien Potencier <fabien@symfony.com>
  21. *
  22. * @deprecated since Symfony 5.3, use the new authenticator system instead
  23. */
  24. interface AuthenticationProviderInterface extends AuthenticationManagerInterface
  25. {
  26. /**
  27. * Use this constant for not provided username.
  28. *
  29. * @var string
  30. */
  31. public const USERNAME_NONE_PROVIDED = 'NONE_PROVIDED';
  32. /**
  33. * Checks whether this provider supports the given token.
  34. *
  35. * @return bool
  36. */
  37. public function supports(TokenInterface $token);
  38. }