mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-28 00:38:46 +03:00
22 lines
617 B
PHP
22 lines
617 B
PHP
<?php
|
|
use Shlinkio\Shlink\Common\ErrorHandler\ContentBasedErrorHandler;
|
|
use Zend\Expressive\Container\TemplatedErrorHandlerFactory;
|
|
use Zend\Stratigility\FinalHandler;
|
|
|
|
return [
|
|
|
|
'error_handler' => [
|
|
'plugins' => [
|
|
'invokables' => [
|
|
'text/plain' => FinalHandler::class,
|
|
],
|
|
'factories' => [
|
|
ContentBasedErrorHandler::DEFAULT_CONTENT => TemplatedErrorHandlerFactory::class,
|
|
],
|
|
'aliases' => [
|
|
'application/xhtml+xml' => ContentBasedErrorHandler::DEFAULT_CONTENT,
|
|
],
|
|
],
|
|
],
|
|
|
|
];
|