1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-28 23:40:41 +02:00

Flextype Core: Whoops Error Handler Integration! #117

This commit is contained in:
Awilum
2019-06-07 20:46:42 +03:00
parent b2557ab967
commit 85fa09e307

View File

@@ -13,7 +13,6 @@
namespace Flextype;
use Flextype\Component\Session\Session;
use Flextype\Component\ErrorHandler\ErrorHandler;
use Flextype\Component\Registry\Registry;
use Flextype\Component\Filesystem\Filesystem;
use Thunder\Shortcode\ShortcodeFacade;
@@ -37,6 +36,9 @@ Session::start();
// Configure application
$config = [
'settings' => [
'debug' => true,
'whoops.editor' => 'atom',
'whoops.page_title' => 'Error!',
'displayErrorDetails' => true,
'addContentLengthHeader' => true,
'addContentLengthHeader' => false,
@@ -45,11 +47,9 @@ $config = [
'outputBuffering' => 'append',
'responseChunkSize' => 4096,
'httpVersion' => '1.1',
'twig' => [
'cache' => PATH['site'] . '/cache/twig',
],
'images' => [
'driver' => 'gd',
],
@@ -78,6 +78,11 @@ $flextype['csrf'] = function ($container) {
*/
$app->add($flextype->get('csrf'));
/**
* as
*/
$app->add(new \Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware($app));
/**
* Add emitter service to Flextype container
*/