1 | <?php |
||
25 | final class ErrorHandlingMiddleware implements Middleware |
||
26 | { |
||
27 | private $logger; |
||
28 | |||
29 | 2 | public function __construct(LoggerInterface $logger) |
|
33 | |||
34 | /** |
||
35 | * @return object |
||
36 | */ |
||
37 | 2 | public function execute(Command $command, callable $next) |
|
55 | |||
56 | /** |
||
57 | * Dispatches a logging request. |
||
58 | */ |
||
59 | 2 | private function log(string $message, string $priority = LogLevel::INFO, array $parameters = []) |
|
63 | } |
||
64 |