2016-07-04 06:14:01 -05:00
|
|
|
<?php
|
2018-12-23 03:18:38 -06:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-03-24 15:10:25 -05:00
|
|
|
use Zend\Expressive\Container\WhoopsErrorResponseGeneratorFactory;
|
2016-07-27 13:17:23 -05:00
|
|
|
|
2016-07-04 06:14:01 -05:00
|
|
|
return [
|
2016-07-31 09:30:05 -05:00
|
|
|
'dependencies' => [
|
2016-07-04 06:14:01 -05:00
|
|
|
'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,
|
|
|
|
],
|
|
|
|
],
|
2016-07-27 13:17:23 -05:00
|
|
|
|
|
|
|
'error_handler' => [
|
|
|
|
'plugins' => [
|
|
|
|
'factories' => [
|
2017-03-24 15:10:25 -05:00
|
|
|
'text/html' => WhoopsErrorResponseGeneratorFactory::class,
|
2016-07-27 13:17:23 -05:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2016-07-04 06:14:01 -05:00
|
|
|
];
|