From 1eb259a2952b05e3904f856a5df7afb76fb7b7e5 Mon Sep 17 00:00:00 2001 From: Ilya Bakhlin Date: Sat, 1 Jan 2022 19:33:19 +0100 Subject: [PATCH] Removing unused method. --- chandler/Bootstrap.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/chandler/Bootstrap.php b/chandler/Bootstrap.php index 431b1d4..15cc132 100644 --- a/chandler/Bootstrap.php +++ b/chandler/Bootstrap.php @@ -2,6 +2,7 @@ declare(strict_types = 1); +use Chandler\MVC\Routing\Router; use Tracy\Debugger; /** @@ -59,8 +60,7 @@ class Bootstrap private function route(string $url): void { ob_start(); - $router = Chandler\MVC\Routing\Router::getInstance(); - if (($output = $router->execute($url, null)) !== null) + if (($output = Router::getInstance()->execute($url)) !== null) echo $output; else chandler_http_panic(404, "Not Found", "No routes for $url."); @@ -69,17 +69,6 @@ class Bootstrap flush(); } - /** - * Initializes GeoIP, sets DB directory. - * - * @return void - * @internal - */ - private function setupGeoIP(): void - { - geoip_setup_custom_directory(CHANDLER_ROOT . "/3rdparty/maxmind/"); - } - /** * Starts framework. * @@ -89,8 +78,6 @@ class Bootstrap function ignite(bool $headless = false): void { $this->registerFunctions(); - $this->registerAutoloaders(); - $this->loadConfig(); $this->registerDebugger(); $this->igniteExtensions(); if (!$headless) {