SecurityEvents.php 1016 B

12345678910111213141516171819202122232425262728293031323334353637
  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\Http;
  11. final class SecurityEvents
  12. {
  13. /**
  14. * The INTERACTIVE_LOGIN event occurs after a user is logged in
  15. * interactively for authentication based on http, cookies or X509.
  16. *
  17. * The event listener method receives a
  18. * Symfony\Component\Security\Http\Event\InteractiveLoginEvent instance.
  19. *
  20. * @var string
  21. */
  22. const INTERACTIVE_LOGIN = 'security.interactive_login';
  23. /**
  24. * The SWITCH_USER event occurs before switch to another user and
  25. * before exit from an already switched user.
  26. *
  27. * The event listener method receives a
  28. * Symfony\Component\Security\Http\Event\SwitchUserEvent instance.
  29. *
  30. * @var string
  31. */
  32. const SWITCH_USER = 'security.switch_user';
  33. }