Drupal 8  8.0.2
DefaultExceptionHtmlSubscriber Class Reference
Inheritance diagram for DefaultExceptionHtmlSubscriber:

Public Member Functions

 __construct (HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination)
 
 on401 (GetResponseForExceptionEvent $event)
 
 on403 (GetResponseForExceptionEvent $event)
 
 on404 (GetResponseForExceptionEvent $event)
 
- Public Member Functions inherited from HttpExceptionSubscriberBase
 onException (GetResponseForExceptionEvent $event)
 

Protected Member Functions

 getHandledFormats ()
 
 makeSubrequest (GetResponseForExceptionEvent $event, $url, $status_code)
 
- Protected Member Functions inherited from HttpExceptionSubscriberBase
 getHandledFormats ()
 

Static Protected Member Functions

static getPriority ()
 
- Static Protected Member Functions inherited from HttpExceptionSubscriberBase
static getPriority ()
 

Protected Attributes

 $httpKernel
 
 $logger
 
 $redirectDestination
 

Additional Inherited Members

- Static Public Member Functions inherited from HttpExceptionSubscriberBase
static getSubscribedEvents ()
 

Detailed Description

Exception subscriber for handling core default HTML error pages.

Constructor & Destructor Documentation

__construct ( HttpKernelInterface  $http_kernel,
LoggerInterface  $logger,
RedirectDestinationInterface  $redirect_destination 
)

Constructs a new DefaultExceptionHtmlSubscriber.

Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface$http_kernelThe HTTP kernel.
\Psr\Log\LoggerInterface$loggerThe logger service.
\Drupal\Core\Routing\RedirectDestinationInterface$redirect_destinationThe redirect destination service.

References Drupal\logger().

Here is the call graph for this function:

Member Function Documentation

getHandledFormats ( )
protected

{}

static getPriority ( )
staticprotected

{}

makeSubrequest ( GetResponseForExceptionEvent  $event,
  $url,
  $status_code 
)
protected

Makes a subrequest to retrieve the default error page.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process
string$urlThe path/url to which to make a subrequest for this error message.
int$status_codeThe status code for the error being handled.

References AccessAwareRouterInterface\ACCESS_RESULT, Error\decodeException(), and Drupal\logger().

Referenced by DefaultExceptionHtmlSubscriber\on401(), CustomPageExceptionHtmlSubscriber\on403(), DefaultExceptionHtmlSubscriber\on403(), CustomPageExceptionHtmlSubscriber\on404(), and DefaultExceptionHtmlSubscriber\on404().

Here is the call graph for this function:

Here is the caller graph for this function:

on401 ( GetResponseForExceptionEvent  $event)

Handles a 401 error for HTML.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

References Url\fromRoute(), and DefaultExceptionHtmlSubscriber\makeSubrequest().

Here is the call graph for this function:

on403 ( GetResponseForExceptionEvent  $event)

Handles a 403 error for HTML.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

References Url\fromRoute(), and DefaultExceptionHtmlSubscriber\makeSubrequest().

Here is the call graph for this function:

on404 ( GetResponseForExceptionEvent  $event)

Handles a 404 error for HTML.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

References Url\fromRoute(), and DefaultExceptionHtmlSubscriber\makeSubrequest().

Here is the call graph for this function:


The documentation for this class was generated from the following file: