Пример #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);
 }