Beta version

class AccessDeniedHandler implements AccessDeniedHandlerInterface

This is used by the ExceptionListener to translate an AccessDeniedException to a Response object.

Methods

__construct(UrlGeneratorInterface $urlGenerator, LoggerInterface $logger)

No description

Response
handle(Request $request, AccessDeniedException $accessDeniedException)

Handles an access denied failure redirecting to home page

Details

at line 54
__construct(UrlGeneratorInterface $urlGenerator, LoggerInterface $logger)

Parameters

UrlGeneratorInterface $urlGenerator
LoggerInterface $logger

at line 68
Response handle(Request $request, AccessDeniedException $accessDeniedException)

Handles an access denied failure redirecting to home page

Parameters

Request $request
AccessDeniedException $accessDeniedException

Return Value

Response may return null