vendor/symfony/security-core/Exception/InsufficientAuthenticationException.php line 22

Open in your IDE?
  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\Exception;
  11. /**
  12.  * InsufficientAuthenticationException is thrown if the user credentials are not sufficiently trusted.
  13.  *
  14.  * This is the case when a user is anonymous and the resource to be displayed has an access role.
  15.  *
  16.  * @author Fabien Potencier <fabien@symfony.com>
  17.  * @author Alexander <iam.asm89@gmail.com>
  18.  */
  19. class InsufficientAuthenticationException extends AuthenticationException
  20. {
  21.     /**
  22.      * {@inheritdoc}
  23.      */
  24.     public function getMessageKey()
  25.     {
  26.         return 'Not privileged to request the resource.';
  27.     }
  28. }