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


PHP Application::refresh方法代碼示例

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


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

示例1: viaRequest

 /**
  * Register a new callback based request guard.
  *
  * @param  string  $driver
  * @param  callable  $callback
  * @return $this
  */
 public function viaRequest($driver, callable $callback)
 {
     return $this->extend($driver, function () use($callback) {
         $guard = new RequestGuard($callback, $this->app['request']);
         $this->app->refresh('request', $guard, 'setRequest');
         return $guard;
     });
 }
開發者ID:eugene-holiday,項目名稱:framework,代碼行數:15,代碼來源:AuthManager.php

示例2: createSessionDriver

 /**
  * Create a session based authentication guard.
  *
  * @param  string  $name
  * @param  array  $config
  * @return \Illuminate\Auth\SessionGuard
  */
 public function createSessionDriver($name, $config)
 {
     $provider = $this->createUserProvider($config['source']);
     $guard = new SessionGuard($name, $provider, $this->app['session.store']);
     // When using the remember me functionality of the authentication services we
     // will need to be set the encryption instance of the guard, which allows
     // secure, encrypted cookie values to get generated for those cookies.
     if (method_exists($guard, 'setCookieJar')) {
         $guard->setCookieJar($this->app['cookie']);
     }
     if (method_exists($guard, 'setDispatcher')) {
         $guard->setDispatcher($this->app['events']);
     }
     if (method_exists($guard, 'setRequest')) {
         $guard->setRequest($this->app->refresh('request', $guard, 'setRequest'));
     }
     return $guard;
 }
開發者ID:alexerm,項目名稱:framework,代碼行數:25,代碼來源:AuthManager.php

示例3: refresh

 /**
  * Refresh an instance on the given target and method.
  *
  * @param string $abstract
  * @param mixed $target
  * @param string $method
  * @return mixed 
  * @static 
  */
 public static function refresh($abstract, $target, $method)
 {
     //Method inherited from \Illuminate\Container\Container
     return \Illuminate\Foundation\Application::refresh($abstract, $target, $method);
 }
開發者ID:satriashp,項目名稱:tour,代碼行數:14,代碼來源:_ide_helper.php


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