PHP Class Baikal\AdminBundle\Service\AccessDeniedHandler

Inheritance: implements Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface
Show file Open project: fruux/Baikal2

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel, Symfony\Component\Security\Core\SecurityContextInterface $securityContext, Symfony\Component\Routing\RouterInterface $router )
handle ( Request $request, Symfony\Component\Security\Core\Exception\AccessDeniedException $accessDeniedException ) : Response Handles an access denied failure.

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel, Symfony\Component\Security\Core\SecurityContextInterface $securityContext, Symfony\Component\Routing\RouterInterface $router )
$http_kernel Symfony\Component\HttpKernel\HttpKernelInterface
$securityContext Symfony\Component\Security\Core\SecurityContextInterface
$router Symfony\Component\Routing\RouterInterface

handle() public method

Handles an access denied failure.
public handle ( Request $request, Symfony\Component\Security\Core\Exception\AccessDeniedException $accessDeniedException ) : Response
$request Symfony\Component\HttpFoundation\Request
$accessDeniedException Symfony\Component\Security\Core\Exception\AccessDeniedException
return Response may return null