SymfonyDisplayer

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Exception/SymfonyDisplayer.html