2016-07-04 14:14:01 +03:00
|
|
|
<?php
|
2017-03-24 23:10:25 +03:00
|
|
|
use Zend\Expressive\Container\WhoopsErrorResponseGeneratorFactory;
|
2016-07-27 21:17:23 +03:00
|
|
|
|
2016-07-04 14:14:01 +03:00
|
|
|
return [
|
2016-07-31 17:30:05 +03:00
|
|
|
'dependencies' => [
|
2016-07-04 14:14:01 +03: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 21:17:23 +03:00
|
|
|
|
|
|
|
'error_handler' => [
|
|
|
|
'plugins' => [
|
|
|
|
'factories' => [
|
2017-03-24 23:10:25 +03:00
|
|
|
'text/html' => WhoopsErrorResponseGeneratorFactory::class,
|
2016-07-27 21:17:23 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2016-07-04 14:14:01 +03:00
|
|
|
];
|