Symfony\Component\Security\Http\Firewall\ExceptionListener::__construct PHP Method

__construct() public method

public __construct ( Symfony\Component\Security\Core\SecurityContextInterface $context, Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface $accessDeniedHandler = null, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
$context Symfony\Component\Security\Core\SecurityContextInterface
$trustResolver Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface
$httpUtils Symfony\Component\Security\Http\HttpUtils
$authenticationEntryPoint Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface
$accessDeniedHandler Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface
$logger Symfony\Component\HttpKernel\Log\LoggerInterface
    public function __construct(SecurityContextInterface $context, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null)
    {
        $this->context = $context;
        $this->accessDeniedHandler = $accessDeniedHandler;
        $this->httpUtils = $httpUtils;
        $this->authenticationEntryPoint = $authenticationEntryPoint;
        $this->authenticationTrustResolver = $trustResolver;
        $this->errorPage = $errorPage;
        $this->logger = $logger;
    }

Usage Example

Example #1
0
 public function __construct(SecurityContextInterface $context, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null)
 {
     $this->providerKey = $providerKey;
     parent::__construct($context, $trustResolver, $httpUtils, $providerKey, $authenticationEntryPoint, $errorPage, $accessDeniedHandler, $logger);
 }