mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-26 00:41:35 -06:00
28 lines
661 B
Plaintext
28 lines
661 B
Plaintext
<?php
|
|
use Zend\Expressive\Container\WhoopsErrorResponseGeneratorFactory;
|
|
|
|
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' => [
|
|
'text/html' => WhoopsErrorResponseGeneratorFactory::class,
|
|
],
|
|
],
|
|
],
|
|
];
|