mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 15:40:33 -06:00
29 lines
745 B
Plaintext
29 lines
745 B
Plaintext
<?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,
|
|
],
|
|
],
|
|
],
|
|
];
|