mirror of
https://github.com/openvk/chandler.git
synced 2025-03-31 21:43:59 +03:00
Removing unused method.
This commit is contained in:
parent
4188fbba67
commit
1eb259a295
1 changed files with 2 additions and 15 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types = 1);
|
declare(strict_types = 1);
|
||||||
|
|
||||||
|
use Chandler\MVC\Routing\Router;
|
||||||
use Tracy\Debugger;
|
use Tracy\Debugger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -59,8 +60,7 @@ class Bootstrap
|
||||||
private function route(string $url): void
|
private function route(string $url): void
|
||||||
{
|
{
|
||||||
ob_start();
|
ob_start();
|
||||||
$router = Chandler\MVC\Routing\Router::getInstance();
|
if (($output = Router::getInstance()->execute($url)) !== null)
|
||||||
if (($output = $router->execute($url, null)) !== null)
|
|
||||||
echo $output;
|
echo $output;
|
||||||
else
|
else
|
||||||
chandler_http_panic(404, "Not Found", "No routes for $url.");
|
chandler_http_panic(404, "Not Found", "No routes for $url.");
|
||||||
|
@ -69,17 +69,6 @@ class Bootstrap
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializes GeoIP, sets DB directory.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
private function setupGeoIP(): void
|
|
||||||
{
|
|
||||||
geoip_setup_custom_directory(CHANDLER_ROOT . "/3rdparty/maxmind/");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts framework.
|
* Starts framework.
|
||||||
*
|
*
|
||||||
|
@ -89,8 +78,6 @@ class Bootstrap
|
||||||
function ignite(bool $headless = false): void
|
function ignite(bool $headless = false): void
|
||||||
{
|
{
|
||||||
$this->registerFunctions();
|
$this->registerFunctions();
|
||||||
$this->registerAutoloaders();
|
|
||||||
$this->loadConfig();
|
|
||||||
$this->registerDebugger();
|
$this->registerDebugger();
|
||||||
$this->igniteExtensions();
|
$this->igniteExtensions();
|
||||||
if (!$headless) {
|
if (!$headless) {
|
||||||
|
|
Loading…
Reference in a new issue