Documentation

ErrorHandlingMiddleware
in package
implements Middleware

Interfaces, Classes and Traits

Middleware
Middleware can be uses to perform extra steps during the parsing process.

Table of Contents

$logger  : LoggerInterface
__construct()  : mixed
execute()  : object
Executes this middle ware class.
log()  : void
Dispatches a logging request.

Properties

Methods

execute()

Executes this middle ware class.

public execute(Command $command, callable $next) : object
Parameters
$command : Command
$next : callable
Return values
object

log()

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> = []
Return values
void

Search results