本文整理汇总了PHP中Artisan::getFacadeRoot方法的典型用法代码示例。如果您正苦于以下问题:PHP Artisan::getFacadeRoot方法的具体用法?PHP Artisan::getFacadeRoot怎么用?PHP Artisan::getFacadeRoot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Artisan
的用法示例。
在下文中一共展示了Artisan::getFacadeRoot方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Setup the application container as we'll need this for running migrations.
*/
public function __construct(Container $app)
{
parent::__construct();
$this->app = $app;
$this->basePath = $this->app->basePath();
$this->Config = $this->app->make('config');
$this->DeviseMigrateCommand = new DeviseMigrateCommand($this->app);
$this->DeviseSeedCommand = new DeviseSeedCommand($this->app);
$this->DevisePublishAssetsCommand = new DevisePublishAssetsCommand($this->app);
$this->DevisePublishConfigsCommand = new DevisePublishConfigsCommand($this->app);
$this->Artisan = \Artisan::getFacadeRoot();
}
示例2: resolveProperty
/**
* Returns a valid property
*
* @param $name
* @return mixed
*/
private function resolveProperty($name)
{
$name = strtolower($name);
switch ($name) {
case 'artisan':
// 'Illuminate\Contracts\Console\Kernel'
return \Artisan::getFacadeRoot();
break;
case 'auth':
// Illuminate\Auth\Guard
return \Auth::getFacadeRoot();
break;
case 'cache':
// Illuminate\Cache\CacheManager
return \Cache::getFacadeRoot();
break;
case 'config':
// Illuminate\Config\Repository
return \Config::getFacadeRoot();
break;
case 'cookie':
// Illuminate\Cookie\CookieJar
return \Cookie::getFacadeRoot();
break;
case 'container':
// Illuminate\Container\Container
return \App::getFacadeRoot();
break;
case 'db':
// Illuminate\Database\DatabaseManager
return \DB::getFacadeRoot();
break;
case 'file':
// Illuminate\Filesystem\Filesystem
return \File::getFacadeRoot();
break;
case 'event':
// Illuminate\Config\Repository
return \Event::getFacadeRoot();
break;
case 'exception':
// DeviseException
return DeviseException::getFacadeRoot();
break;
case 'hash':
// Illuminate\Hashing\BcryptHasher
return \Hash::getFacadeRoot();
break;
case 'input':
// Illuminate\Http\Request
return \Input::getFacadeRoot();
break;
case 'lang':
// Illuminate\Translation\Translator
return \Lang::getFacadeRoot();
break;
case 'mail':
// Illuminate\Mail\Mailer
return \Mail::getFacadeRoot();
break;
case 'paginator':
return new DevisePaginator();
break;
case 'password':
// Illuminate\Auth\Reminders\PasswordBroker
return \Password::getFacadeRoot();
break;
case 'redirect':
// Illuminate\Routing\Redirector
return \Redirect::getFacadeRoot();
break;
case 'response':
// DeviseResponse
return DeviseResponse::getFacadeRoot();
break;
case 'request':
// Illuminate\Http\Request
return \Request::getFacadeRoot();
break;
case 'route':
// Illuminate\Routing\Router
return \Route::getFacadeRoot();
break;
case 'schema':
return \Schema::getFacadeRoot();
break;
case 'session':
// Illuminate\Session\SessionManager
return \Session::getFacadeRoot();
break;
case 'url':
// Illuminate\Routing\UrlGenerator
return \URL::getFacadeRoot();
break;
//.........这里部分代码省略.........