phpBB API Documentation
Class

phpbb\console\exception_subscriber

class exception_subscriber implements EventSubscriberInterface

Methods

__construct(language $language)

Construct method

on_exception(ConsoleExceptionEvent $event)

This listener is run when the ConsoleEvents::EXCEPTION event is triggered.

static  getSubscribedEvents()

Details

at line 33
public __construct(language $language)

Construct method

Parameters

language $language Language object

at line 44
public on_exception(ConsoleExceptionEvent $event)

This listener is run when the ConsoleEvents::EXCEPTION event is triggered.

It translate the exception message. If din debug mode the original exception is embedded.

Parameters

ConsoleExceptionEvent $event

at line 59
static public getSubscribedEvents()