Removing the debugger.

This commit is contained in:
Ilya Bakhlin 2022-01-01 19:46:25 +01:00
parent 24e48868d8
commit aa310f4ae4

View file

@ -3,7 +3,6 @@
declare(strict_types = 1); declare(strict_types = 1);
use Chandler\MVC\Routing\Router; use Chandler\MVC\Routing\Router;
use Tracy\Debugger;
/** /**
* Bootstrap class, that is called during framework starting phase. * Bootstrap class, that is called during framework starting phase.
@ -25,18 +24,6 @@ class Bootstrap
Chandler\Extensions\ExtensionManager::getInstance(); Chandler\Extensions\ExtensionManager::getInstance();
} }
/**
* Starts Tracy debugger session and installs panels.
*
* @return void
* @internal
*/
private function registerDebugger(): void
{
Debugger::enable((CHANDLER_ROOT_CONF["debug"] ? Debugger::DEVELOPMENT : Debugger::PRODUCTION), __DIR__ . "/../logs");
Debugger::getBar()->addPanel(new Chandler\Debug\DatabasePanel);
}
/** /**
* Loads procedural APIs. * Loads procedural APIs.
* *
@ -72,10 +59,9 @@ class Bootstrap
/** /**
* @return void * @return void
*/ */
function ignite(): void public function ignite(): void
{ {
$this->registerFunctions(); $this->registerFunctions();
$this->registerDebugger();
$this->igniteExtensions(); $this->igniteExtensions();
header("Referrer-Policy: strict-origin-when-cross-origin"); header("Referrer-Policy: strict-origin-when-cross-origin");
$this->route(function_exists("get_current_url") ? get_current_url() : $_SERVER["REQUEST_URI"]); $this->route(function_exists("get_current_url") ? get_current_url() : $_SERVER["REQUEST_URI"]);