PHP Class eZ\Bundle\EzPublishCoreBundle\EventListener\ExceptionListener

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Translation\TranslatorInterface $translator )
getSubscribedEvents ( )
onKernelException ( GetResponseForExceptionEvent $event )

Private Methods

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

Method Details

__construct() public méthode

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

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

onKernelException() public méthode

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