mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-27 16:26:37 +03:00
28 lines
733 B
Text
28 lines
733 B
Text
<?php
|
|
use Shlinkio\Shlink\Common\ErrorHandler\ContentBasedErrorHandler;
|
|
use Zend\Expressive\Container\WhoopsErrorHandlerFactory;
|
|
|
|
return [
|
|
'services' => [
|
|
'invokables' => [
|
|
'Zend\Expressive\Whoops' => Whoops\Run::class,
|
|
'Zend\Expressive\WhoopsPageHandler' => Whoops\Handler\PrettyPageHandler::class,
|
|
],
|
|
],
|
|
|
|
'whoops' => [
|
|
'json_exceptions' => [
|
|
'display' => true,
|
|
'show_trace' => true,
|
|
'ajax_only' => true,
|
|
],
|
|
],
|
|
|
|
'error_handler' => [
|
|
'plugins' => [
|
|
'factories' => [
|
|
ContentBasedErrorHandler::DEFAULT_CONTENT => WhoopsErrorHandlerFactory::class,
|
|
],
|
|
],
|
|
],
|
|
];
|