AuthenticationEvents.php 1017 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. final class AuthenticationEvents
  12. {
  13. /**
  14. * The AUTHENTICATION_SUCCESS event occurs after a user is authenticated
  15. * by one provider.
  16. *
  17. * The event listener method receives a
  18. * Symfony\Component\Security\Core\Event\AuthenticationEvent instance.
  19. *
  20. * @Event
  21. */
  22. const AUTHENTICATION_SUCCESS = 'security.authentication.success';
  23. /**
  24. * The AUTHENTICATION_FAILURE event occurs after a user cannot be
  25. * authenticated by any of the providers.
  26. *
  27. * The event listener method receives a
  28. * Symfony\Component\Security\Core\Event\AuthenticationFailureEvent
  29. * instance.
  30. *
  31. * @Event
  32. */
  33. const AUTHENTICATION_FAILURE = 'security.authentication.failure';
  34. }