PHP Class eZ\Bundle\EzPublishCoreBundle\EventListener\ExceptionListener

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Translation\TranslatorInterface $translator )
getSubscribedEvents ( )
onKernelException ( GetResponseForExceptionEvent $event )

Private Methods

Method Description
getTranslatedMessage ( Exception $exception ) : string Translates the exception message if it is translatable.

Method Details

__construct() public method

public __construct ( Symfony\Component\Translation\TranslatorInterface $translator )
$translator Symfony\Component\Translation\TranslatorInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onKernelException() public method

public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent