Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

vendor/symfony/security-bundle/Security/FirewallContext.php line 33

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\Bundle\SecurityBundle\Security;
  11. use Symfony\Component\Security\Http\Firewall\ExceptionListener;
  12. use Symfony\Component\Security\Http\Firewall\LogoutListener;
  13. /**
  14.  * This is a wrapper around the actual firewall configuration which allows us
  15.  * to lazy load the context for one specific firewall only when we need it.
  16.  *
  17.  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  18.  */
  19. class FirewallContext
  20. {
  21.     private $listeners;
  22.     private $exceptionListener;
  23.     private $logoutListener;
  24.     private $config;
  25.     /**
  26.      * @param iterable<mixed, callable> $listeners
  27.      */
  28.     public function __construct(iterable $listenersExceptionListener $exceptionListener nullLogoutListener $logoutListener nullFirewallConfig $config null)
  29.     {
  30.         $this->listeners $listeners;
  31.         $this->exceptionListener $exceptionListener;
  32.         $this->logoutListener $logoutListener;
  33.         $this->config $config;
  34.     }
  35.     public function getConfig()
  36.     {
  37.         return $this->config;
  38.     }
  39.     /**
  40.      * @return iterable<mixed, callable>
  41.      */
  42.     public function getListeners(): iterable
  43.     {
  44.         return $this->listeners;
  45.     }
  46.     public function getExceptionListener()
  47.     {
  48.         return $this->exceptionListener;
  49.     }
  50.     public function getLogoutListener()
  51.     {
  52.         return $this->logoutListener;
  53.     }
  54. }