예제 #1
0
 /**
  * Register aliases (Facades).
  */
 protected function registerAliases()
 {
     $loader = $this->aliasLoader;
     $this->app->booting(function () use($loader) {
         foreach ($this->aliases as $class => $alias) {
             $loader->alias($class, $alias);
         }
     });
 }
예제 #2
0
 /**
  * Register a new boot listener.
  *
  * @param mixed $callback
  * @return void 
  * @static 
  */
 public static function booting($callback)
 {
     \Illuminate\Foundation\Application::booting($callback);
 }