當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Redirect::getFacadeRoot方法代碼示例

本文整理匯總了PHP中Redirect::getFacadeRoot方法的典型用法代碼示例。如果您正苦於以下問題:PHP Redirect::getFacadeRoot方法的具體用法?PHP Redirect::getFacadeRoot怎麽用?PHP Redirect::getFacadeRoot使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Redirect的用法示例。


在下文中一共展示了Redirect::getFacadeRoot方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Creates a new DvsPagesController instance.
  *
  * @param  PagesRepository $PagesRepository
  * @param  Viewvars\DataBuilder $DataBuilder
  * @param null $Input
  * @param null $View
  * @param null $Route
  * @param null $Redirect
  */
 public function __construct(PagesRepository $PagesRepository, Viewvars\DataBuilder $DataBuilder, $Input = null, $View = null, $Route = null, $Redirect = null, $Cookie = null)
 {
     $this->PagesRepository = $PagesRepository;
     $this->DataBuilder = $DataBuilder;
     $this->Input = $Input ?: \Input::getFacadeRoot();
     $this->View = $View ?: \View::getFacadeRoot();
     $this->Route = $Route ?: \Route::getFacadeRoot();
     $this->Redirect = $Redirect ?: \Redirect::getFacadeRoot();
 }
開發者ID:alpas29,項目名稱:cms,代碼行數:19,代碼來源:PageController.php

示例2: __construct

 public function __construct(DvsUser $DvsUser, DvsGroup $DvsGroup, SessionsRepository $SessionsRepository, UsersRepository $UsersRepository, $App = null, $Redirect = null, $View = null)
 {
     $this->DvsUser = $DvsUser;
     $this->DvsGroup = $DvsGroup;
     $this->SessionsRepository = $SessionsRepository;
     $this->UsersRepository = $UsersRepository;
     $this->App = $App ?: \App::getFacadeRoot();
     $this->Redirect = $Redirect ?: \Redirect::getFacadeRoot();
     $this->View = $View ?: \View::getFacadeRoot();
     $this->data['title'] = 'DeviseUser';
 }
開發者ID:devisephp,項目名稱:cms,代碼行數:11,代碼來源:DeviseUserController.php

示例3: __construct

 /**
  * Construct a new response handler
  *
  * @param Manager $FileManager
  * @param null $Redirect
  */
 public function __construct(Manager $FileManager, $Redirect = null, $Request = null)
 {
     $this->FileManager = $FileManager;
     $this->Redirect = $Redirect ?: \Redirect::getFacadeRoot();
     $this->Request = $Request ?: \Request::getFacadeRoot();
 }
開發者ID:devisephp,項目名稱:cms,代碼行數:12,代碼來源:ResponseHandler.php

示例4: 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;
//.........這裏部分代碼省略.........
開發者ID:devisephp,項目名稱:cms,代碼行數:101,代碼來源:Framework.php


注:本文中的Redirect::getFacadeRoot方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。