From aa310f4ae4e031f671af82fce630bd260caeceb6 Mon Sep 17 00:00:00 2001
From: Ilya Bakhlin <git@ilyabakhlin.com>
Date: Sat, 1 Jan 2022 19:46:25 +0100
Subject: [PATCH] Removing the debugger.

---
 chandler/Bootstrap.php | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/chandler/Bootstrap.php b/chandler/Bootstrap.php
index e2dd106..a7ec77c 100644
--- a/chandler/Bootstrap.php
+++ b/chandler/Bootstrap.php
@@ -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"]);