mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-23 01:16:23 -06:00
27 lines
589 B
PHP
27 lines
589 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
use Shlinkio\Shlink\Common\Logger;
|
||
|
use Zend\ProblemDetails\ProblemDetailsMiddleware;
|
||
|
use Zend\Stratigility\Middleware\ErrorHandler;
|
||
|
|
||
|
return [
|
||
|
|
||
|
'error_handler' => [
|
||
|
'listeners' => [Logger\ErrorLogger::class],
|
||
|
],
|
||
|
|
||
|
'dependencies' => [
|
||
|
'delegators' => [
|
||
|
ErrorHandler::class => [
|
||
|
Logger\ErrorHandlerListenerAttachingDelegator::class,
|
||
|
],
|
||
|
ProblemDetailsMiddleware::class => [
|
||
|
Logger\ErrorHandlerListenerAttachingDelegator::class,
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
|
||
|
];
|