本文整理汇总了PHP中Illuminate\Auth\Guard::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Guard::__construct方法的具体用法?PHP Guard::__construct怎么用?PHP Guard::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Auth\Guard
的用法示例。
在下文中一共展示了Guard::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Create a new authentication guard.
*
* @param UserProvider $provider
* @param SessionInterface $session
* @param string $sName
* @param Request $request
*/
public function __construct(UserProvider $provider, SessionInterface $session, $sName, Request $request = null)
{
parent::__construct($provider, $session, $request);
/*
* Save the auth name
*/
$this->setAuthKeyName($sName);
}
示例2: __construct
public function __construct($provider, $session, \Zend\Permissions\Acl\Acl $acl)
{
parent::__construct($provider, $session);
$this->acl = $acl;
}
示例3: __construct
public function __construct(UserProviderInterface $provider, SessionStore $session, $name, Request $request = null)
{
parent::__construct($provider, $session, $request);
$this->name = $name;
}
示例4: __construct
/**
* @param array $configs
*/
public function __construct(UserProvider $provider, SessionInterface $session, Request $request = null)
{
$this->options = array_merge($this->defaults, config('laravel-cas', []));
parent::__construct($provider, $session, $request);
}
示例5: __construct
/**
* Create a new authentication guard.
*
* @param UserProvider $provider
* @param \Symfony\Component\HttpFoundation\Session\SessionInterface $session
* @param \Symfony\Component\HttpFoundation\Request $request
*/
public function __construct(UserProvider $provider, SessionInterface $session, Request $request = null)
{
parent::__construct($provider, $session, $request);
}
示例6: __construct
/**
* @param UserProviderInterface $provider
* @param SessionStore $session
* @param RoleProviderInterface $roleProvider
* @param Repository $config
*/
public function __construct(UserProviderInterface $provider, SessionStore $session, RoleProviderInterface $roleProvider, Repository $config)
{
parent::__construct($provider, $session);
$this->roleProvider = $roleProvider;
$this->config = $config;
}