mirror of
https://github.com/openvk/chandler.git
synced 2025-03-31 21:43:59 +03:00
Removing the debugger.
This commit is contained in:
parent
24e48868d8
commit
aa310f4ae4
1 changed files with 1 additions and 15 deletions
|
@ -3,7 +3,6 @@
|
|||
declare(strict_types = 1);
|
||||
|
||||
use Chandler\MVC\Routing\Router;
|
||||
use Tracy\Debugger;
|
||||
|
||||
/**
|
||||
* Bootstrap class, that is called during framework starting phase.
|
||||
|
@ -25,18 +24,6 @@ class Bootstrap
|
|||
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.
|
||||
*
|
||||
|
@ -72,10 +59,9 @@ class Bootstrap
|
|||
/**
|
||||
* @return void
|
||||
*/
|
||||
function ignite(): void
|
||||
public function ignite(): void
|
||||
{
|
||||
$this->registerFunctions();
|
||||
$this->registerDebugger();
|
||||
$this->igniteExtensions();
|
||||
header("Referrer-Policy: strict-origin-when-cross-origin");
|
||||
$this->route(function_exists("get_current_url") ? get_current_url() : $_SERVER["REQUEST_URI"]);
|
||||
|
|
Loading…
Reference in a new issue