示例#1
0
 /**
  * Get the registered name of the component.
  *
  * @return string
  */
 protected static function getFacadeAccessor()
 {
     if (!static::$app) {
         $container = new Container();
         $provider = new RocketeerServiceProvider($container);
         $provider->boot();
         static::$app = $container;
     }
     return static::$accessor;
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     // Load Rocketeer
     $provider = new RocketeerServiceProvider($this->app);
     $provider->register();
     $provider->boot();
     // Load Satellite
     $this->registerServices();
     $this->loadConfiguration();
     // Bind container unto itself
     $this->app->instance('Illuminate\\Container\\Container', $this->app);
 }
示例#3
0
 /**
  * Get the registered name of the component.
  *
  * @return string
  */
 protected static function getFacadeAccessor()
 {
     if (!static::$app) {
         static::$app = RocketeerServiceProvider::make();
     }
     return static::$accessor;
 }
示例#4
0
 /**
  * Set up the tests
  *
  * @return void
  */
 public function setUp()
 {
     $this->app = new Container();
     // Laravel classes --------------------------------------------- /
     $this->app->instance('path.base', '/src');
     $this->app->instance('path', '/src/app');
     $this->app->instance('path.public', '/src/public');
     $this->app->instance('path.storage', '/src/app/storage');
     $this->app['files'] = new Filesystem();
     $this->app['config'] = $this->getConfig();
     $this->app['remote'] = $this->getRemote();
     $this->app['artisan'] = $this->getArtisan();
     $this->app['rocketeer.command'] = $this->getCommand();
     // Rocketeer classes ------------------------------------------- /
     $serviceProvider = new RocketeerServiceProvider($this->app);
     $this->app = $serviceProvider->bindPaths($this->app);
     $this->app = $serviceProvider->bindCoreClasses($this->app);
     $this->app = $serviceProvider->bindClasses($this->app);
     $this->app = $serviceProvider->bindScm($this->app);
 }