mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-28 00:38:46 +03:00
28 lines
745 B
Text
28 lines
745 B
Text
<?php
|
|
use Acelaya\ExpressiveErrorHandler\ErrorHandler\ContentBasedErrorHandler;
|
|
use Zend\Expressive\Container\WhoopsErrorHandlerFactory;
|
|
|
|
return [
|
|
'dependencies' => [
|
|
'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,
|
|
],
|
|
],
|
|
],
|
|
];
|