Ejemplo n.º 1
0
 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');
 }
Ejemplo n.º 2
0
 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());
 }