Symfony2 API
Class

Symfony\Component\HttpKernel\EventListener\ExceptionListener

class ExceptionListener implements EventSubscriberInterface

ExceptionListener.

Methods

__construct($controller, LoggerInterface $logger = null)

onKernelException(GetResponseForExceptionEvent $event)

static array getSubscribedEvents()

Returns an array of event names this subscriber wants to listen to.

Details

at line 34
public __construct($controller, LoggerInterface $logger = null)

Parameters

$controller
LoggerInterface $logger

at line 40
public onKernelException(GetResponseForExceptionEvent $event)

Parameters

GetResponseForExceptionEvent $event

at line 74
static public array getSubscribedEvents()

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be:

For instance:

Return Value

array The event names to listen to