class SymfonyDisplayer implements ExceptionDisplayerInterface (View source)

Properties

protected ExceptionHandler $symfony

The Symfony exception handler.

protected bool $returnJson

Indicates if JSON should be returned.

Methods

void
__construct(ExceptionHandler $symfony, bool $returnJson = false)

Create a new Symfony exception displayer.

display(Exception $exception)

Display the given exception to the user.

Details

void __construct(ExceptionHandler $symfony, bool $returnJson = false)

Create a new Symfony exception displayer.

Parameters

ExceptionHandler $symfony
bool $returnJson

Return Value

void

display(Exception $exception)

Display the given exception to the user.

Parameters

Exception $exception