当前位置: 首页>>代码示例>>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;未经允许,请勿转载。