Skip to content
Permalink
Browse files

Debugger::enable() preloading via class_exists changed to require_once [

Closes #389]
  • Loading branch information...
dg committed Sep 24, 2019
1 parent eb2e772 commit 54ec37a25654c53119559eeba7de21b24d8a2889
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Tracy/Debugger/Debugger.php
@@ -199,8 +199,9 @@ public static function enable($mode = null, string $logDirectory = null, $email
set_exception_handler([__CLASS__, 'exceptionHandler']);
set_error_handler([__CLASS__, 'errorHandler']);
array_map('class_exists', [Bar::class, BlueScreen::class, DefaultBarPanel::class, Dumper::class,
FireLogger::class, Helpers::class, Logger::class, ]);
foreach (['Bar/Bar', 'Bar/DefaultBarPanel', 'BlueScreen/BlueScreen', 'Dumper/Dumper', 'Logger/Logger', 'Helpers'] as $path) {
require_once dirname(__DIR__) . "/$path.php";
}
self::dispatch();
self::$enabled = true;

0 comments on commit 54ec37a

Please sign in to comment.
You can’t perform that action at this time.