public function bootstrap(App $app) { $conf = new Repository(new FileLoader($app->configPath()), ""); $app->instance("config", $conf); date_default_timezone_set($conf->get("app.timezone")); mb_internal_encoding('UTF-8'); }
public function testPath() { $this->assertEquals($this->rootPath, $this->app->basePath()); $this->assertEquals($this->rootPath . DIRECTORY_SEPARATOR . "app", $this->app->path()); $this->assertEquals($this->rootPath . DIRECTORY_SEPARATOR . "config", $this->app->configPath()); }