2016-07-04 06:14:01 -05:00
|
|
|
<?php
|
2016-08-12 10:55:07 -05:00
|
|
|
use Acelaya\ExpressiveErrorHandler\ErrorHandler\ContentBasedErrorHandler;
|
2016-07-27 13:17:23 -05:00
|
|
|
use Zend\Expressive\Container\WhoopsErrorHandlerFactory;
|
|
|
|
|
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' => [
|
|
|
|
ContentBasedErrorHandler::DEFAULT_CONTENT => WhoopsErrorHandlerFactory::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2016-07-04 06:14:01 -05:00
|
|
|
];
|