/**
  * Setup application.
  *
  * @return Application
  */
 protected function setupApplication()
 {
     // Create the application such that the config is loaded
     $app = new Application();
     $app->instance('path', 'foobar');
     $app->instance('files', new Filesystem());
     $app->instance('config', new Repository($app->getConfigLoader(), 'foobar'));
     return $app;
 }
Example #2
0
 public function setupApplication($config = true)
 {
     $app = new Application();
     $app->instance('path', 'foobar');
     $app->instance('files', new Filesystem());
     $app->instance('config', new Repository($app->getConfigLoader(), 'foobar'));
     if ($config) {
         $app['config']->set('statsd', array('host' => "localhost", 'port' => 7890, 'namespace' => 'test_namespace'));
     }
     return $app;
 }
Example #3
0
 /**
  * Get the configuration loader instance.
  *
  * @return \Illuminate\Config\LoaderInterface 
  * @static 
  */
 public static function getConfigLoader()
 {
     return \Illuminate\Foundation\Application::getConfigLoader();
 }