/**
  * Bootstrap the given application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application $app
  * @return void
  */
 public function bootstrap(Application $app)
 {
     $this->app = $app;
     $this->app->setBasePath($this->basePath);
     $this->app->instance('path', $this->getPath());
     foreach (['config', 'database', 'lang', 'public', 'storage'] as $path) {
         $this->app->instance('path.' . $path, $this->getPath($path));
     }
 }
 private function setupApplication()
 {
     $app = new Application();
     $app->setBasePath(sys_get_temp_dir());
     $app->instance('config', new Repository());
     return $app;
 }
 /**
  * @return Application
  */
 private function setupApplication()
 {
     // Create the application such that the config is loaded.
     $app = new Application();
     $app->setBasePath(sys_get_temp_dir());
     $app->instance('config', new Repository());
     return $app;
 }
Example #4
0
 /**
  * Set the base path for the application.
  *
  * @param string $basePath
  * @return $this 
  * @static 
  */
 public static function setBasePath($basePath)
 {
     return \Illuminate\Foundation\Application::setBasePath($basePath);
 }