ErrorHandlingMiddleware
in package
implements
Middleware
FinalYes
Table of Contents
Interfaces
- Middleware
- Middleware can be uses to perform extra steps during the parsing process.
Properties
Methods
- __construct() : mixed
- execute() : object
- Executes this middle ware class.
- log() : void
- Dispatches a logging request.
Properties
$logger read-only
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
execute()
Executes this middle ware class.
public
execute(Command $command, callable(Command): object $next) : object
Parameters
Return values
objectlog()
Dispatches a logging request.
private
log(string $message[, string $priority = LogLevel::INFO ][, array<string|int, mixed> $parameters = [] ]) : void
Parameters
- $message : string
- $priority : string = LogLevel::INFO
- $parameters : array<string|int, mixed> = []