From bbef3444c214eeb29964d97a7dd9ebef6f8d31bd Mon Sep 17 00:00:00 2001 From: Alejandro Celaya <alejandro@alejandrocelaya.com> Date: Mon, 4 Jul 2016 13:14:01 +0200 Subject: [PATCH] Added errorhanler local config distributable file --- config/autoload/errorhandler.local.php.dist | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 config/autoload/errorhandler.local.php.dist diff --git a/config/autoload/errorhandler.local.php.dist b/config/autoload/errorhandler.local.php.dist new file mode 100644 index 00000000..92a92497 --- /dev/null +++ b/config/autoload/errorhandler.local.php.dist @@ -0,0 +1,21 @@ +<?php + +return [ + 'services' => [ + 'invokables' => [ + 'Zend\Expressive\Whoops' => Whoops\Run::class, + 'Zend\Expressive\WhoopsPageHandler' => Whoops\Handler\PrettyPageHandler::class, + ], + 'factories' => [ + 'Zend\Expressive\FinalHandler' => Zend\Expressive\Container\WhoopsErrorHandlerFactory::class, + ], + ], + + 'whoops' => [ + 'json_exceptions' => [ + 'display' => true, + 'show_trace' => true, + 'ajax_only' => true, + ], + ], +];