SecurityEvents.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 has actively logged
  15. * into your website. It is important to distinguish this action from
  16. * non-interactive authentication methods, such as:
  17. * - authentication based on your session.
  18. * - authentication using a HTTP basic or HTTP digest header.
  19. *
  20. * The event listener method receives a
  21. * Symfony\Component\Security\Http\Event\InteractiveLoginEvent instance.
  22. *
  23. * @Event
  24. */
  25. const INTERACTIVE_LOGIN = 'security.interactive_login';
  26. /**
  27. * The SWITCH_USER event occurs before switch to another user and
  28. * before exit from an already switched user.
  29. *
  30. * The event listener method receives a
  31. * Symfony\Component\Security\Http\Event\SwitchUserEvent instance.
  32. *
  33. * @Event
  34. */
  35. const SWITCH_USER = 'security.switch_user';
  36. }