config->chibi->baseUrl = 'http://' . rtrim($_SERVER['HTTP_HOST'], '/') . '/'; R::setup('sqlite:' . $this->config->main->dbPath); $workCallback(); } } $query = $_SERVER['REQUEST_URI']; $configPaths = [ __DIR__ . DIRECTORY_SEPARATOR . '../config.ini', __DIR__ . DIRECTORY_SEPARATOR . '../local.ini' ]; $configPaths = array_filter($configPaths, 'file_exists'); \Chibi\Facade::run($query, $configPaths, new Bootstrap());