mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-25 10:20:18 -06:00
30 lines
687 B
Plaintext
30 lines
687 B
Plaintext
<?php
|
|
declare(strict_types=1);
|
|
|
|
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,
|
|
],
|
|
],
|
|
],
|
|
];
|