InvalidLoginLinkAuthenticationException.php 712 B

12345678910111213141516171819202122232425262728293031
  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\LoginLink\Exception;
  11. use Symfony\Component\Security\Core\Exception\AuthenticationException;
  12. /**
  13. * Thrown when a login link is invalid.
  14. *
  15. * @author Ryan Weaver <ryan@symfonycasts.com>
  16. * @experimental in 5.2
  17. */
  18. class InvalidLoginLinkAuthenticationException extends AuthenticationException
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function getMessageKey()
  24. {
  25. return 'Invalid or expired login link.';
  26. }
  27. }