From e7aba2a256c9b12e3d3328a142c55642ae29c5fa Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 23 Mar 2017 11:21:13 -0400 Subject: [PATCH] Get rid of whoops --- composer.json | 3 +-- index.php | 14 -------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/composer.json b/composer.json index 0c8adaf8..d85c4a18 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,6 @@ "aura/session": "^2.0", "aviat/banker": "^1.0.0", "aviat/ion": "dev-master", - "filp/whoops": "^2.1.5", "monolog/monolog": "^1.0", "psr/http-message": "~1.0", "psr/log": "~1.0", @@ -41,7 +40,7 @@ "robmorgan/phinx": "~0.6.4", "consolidation/robo": "~1.0", "henrikbjorn/lurker": "^1.1.0", - "symfony/var-dumper": "^3.1", + "symfony/var-dumper": "^3.2", "squizlabs/php_codesniffer": "^3.0.0@beta", "phpstan/phpstan": "^0.6.4" }, diff --git a/index.php b/index.php index e780cc78..48958f44 100644 --- a/index.php +++ b/index.php @@ -18,8 +18,6 @@ namespace Aviat\AnimeClient; use function Aviat\AnimeClient\loadToml; use Aviat\AnimeClient\AnimeClient; -use Whoops\Handler\PrettyPageHandler; -use Whoops\Run; // Work around the silly timezone error $timezone = ini_get('date.timezone'); @@ -36,18 +34,6 @@ $APP_DIR = _dir(__DIR__, 'app'); $APPCONF_DIR = _dir($APP_DIR, 'appConf'); $CONF_DIR = _dir($APP_DIR, 'config'); -// ------------------------------------------------------------------------- -// Setup error handling -// ------------------------------------------------------------------------- -$whoops = new Run(); - -// Set up default handler for general errors -$defaultHandler = new PrettyPageHandler(); -$whoops->pushHandler($defaultHandler); - -// Register as the error handler -$whoops->register(); - // ----------------------------------------------------------------------------- // Dependency Injection setup // -----------------------------------------------------------------------------