SecurityContextInterface.php 951 B

123456789101112131415161718192021222324252627282930
  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;
  11. use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
  12. use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
  13. /**
  14. * The SecurityContextInterface.
  15. *
  16. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  17. *
  18. * @deprecated since version 2.6, to be removed in 3.0.
  19. */
  20. interface SecurityContextInterface extends TokenStorageInterface, AuthorizationCheckerInterface
  21. {
  22. const ACCESS_DENIED_ERROR = Security::ACCESS_DENIED_ERROR;
  23. const AUTHENTICATION_ERROR = Security::AUTHENTICATION_ERROR;
  24. const LAST_USERNAME = Security::LAST_USERNAME;
  25. const MAX_USERNAME_LENGTH = Security::MAX_USERNAME_LENGTH;
  26. }