Replace Whoops with Tracy
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
This commit is contained in:
parent
4524885a79
commit
f0eacc2f93
@ -47,7 +47,6 @@
|
|||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-gd": "*",
|
"ext-gd": "*",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"filp/whoops": "^2.1",
|
|
||||||
"laminas/laminas-diactoros": "^2.5.0",
|
"laminas/laminas-diactoros": "^2.5.0",
|
||||||
"laminas/laminas-httphandlerrunner": "^1.1.0",
|
"laminas/laminas-httphandlerrunner": "^1.1.0",
|
||||||
"maximebf/consolekit": "^1.0.3",
|
"maximebf/consolekit": "^1.0.3",
|
||||||
@ -59,7 +58,7 @@
|
|||||||
"robmorgan/phinx": "^0.12.4",
|
"robmorgan/phinx": "^0.12.4",
|
||||||
"symfony/polyfill-mbstring": "^1.0.0",
|
"symfony/polyfill-mbstring": "^1.0.0",
|
||||||
"symfony/polyfill-util": "^1.0.0",
|
"symfony/polyfill-util": "^1.0.0",
|
||||||
"symfony/var-dumper": "^5.0.7",
|
"tracy/tracy": "^2.8.0",
|
||||||
"yosymfony/toml": "^1.0.4"
|
"yosymfony/toml": "^1.0.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
17
index.php
17
index.php
@ -17,9 +17,7 @@
|
|||||||
namespace Aviat\AnimeClient;
|
namespace Aviat\AnimeClient;
|
||||||
|
|
||||||
use Aviat\AnimeClient\Types\Config as ConfigType;
|
use Aviat\AnimeClient\Types\Config as ConfigType;
|
||||||
use Whoops\Handler;
|
use Tracy\Debugger;
|
||||||
use Whoops\Run;
|
|
||||||
use Whoops\Util;
|
|
||||||
use function Aviat\Ion\_dir;
|
use function Aviat\Ion\_dir;
|
||||||
|
|
||||||
setlocale(LC_CTYPE, 'en_US');
|
setlocale(LC_CTYPE, 'en_US');
|
||||||
@ -27,17 +25,8 @@ setlocale(LC_CTYPE, 'en_US');
|
|||||||
// Load composer autoloader
|
// Load composer autoloader
|
||||||
require_once __DIR__ . '/vendor/autoload.php';
|
require_once __DIR__ . '/vendor/autoload.php';
|
||||||
|
|
||||||
if (file_exists('.is-dev'))
|
Debugger::$strictMode = true;
|
||||||
{
|
Debugger::enable(Debugger::DEVELOPMENT, __DIR__ . '/app/logs');
|
||||||
$whoops = new Run;
|
|
||||||
$whoops->pushHandler(new Handler\PrettyPageHandler);
|
|
||||||
|
|
||||||
if (Util\Misc::isAjaxRequest()) {
|
|
||||||
$whoops->pushHandler(new Handler\JsonResponseHandler);
|
|
||||||
}
|
|
||||||
|
|
||||||
$whoops->register();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Define base directories
|
// Define base directories
|
||||||
$APP_DIR = _dir(__DIR__, 'app');
|
$APP_DIR = _dir(__DIR__, 'app');
|
||||||
|
Loading…
Reference in New Issue
Block a user