/** * 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); } }); }
/** * Register a new boot listener. * * @param mixed $callback * @return void * @static */ public static function booting($callback) { \Illuminate\Foundation\Application::booting($callback); }