Fast404ExceptionHtmlSubscriber
class Fast404ExceptionHtmlSubscriber extends HttpExceptionSubscriberBase (View source)
High-performance 404 exception subscriber.
This subscriber will return a minimalist 404 response for HTML requests without running a full page theming operation.
Properties
| protected HttpKernelInterface | $httpKernel | The HTTP kernel. |
|
| protected ConfigFactoryInterface | $configFactory | The config factory. |
Methods
Specifies the request formats this subscriber will respond to.
Specifies the priority of all listeners in this class.
Handles errors for this subscriber.
Registers the methods in this class that should be listeners.
Constructs a new Fast404ExceptionHtmlSubscriber.
Handles a 404 error for HTML.
Details
protected array
getHandledFormats()
Specifies the request formats this subscriber will respond to.
static protected int
getPriority()
Specifies the priority of all listeners in this class.
The default priority is 1, which is very low. To have listeners that have a "first attempt" at handling exceptions return a higher priority.
onException(ExceptionEvent $event)
Handles errors for this subscriber.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.
__construct(ConfigFactoryInterface $config_factory, HttpKernelInterface $http_kernel)
Constructs a new Fast404ExceptionHtmlSubscriber.
on404(ExceptionEvent $event)
Handles a 404 error for HTML.