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 33
public __construct($controller, LoggerInterface $logger = null)

Parameters

$controller
LoggerInterface $logger

at line 39
public onKernelException(GetResponseForExceptionEvent $event)

Parameters

GetResponseForExceptionEvent $event

at line 81
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:

Return Value

array The event names to listen to