public __construct ( Cartalyst\Sentinel\Sessions\SessionInterface $session, Cartalyst\Sentinel\Cookies\CookieInterface $cookie, string $model = null, boolean $single = false ) : void | ||
$session | Cartalyst\Sentinel\Sessions\SessionInterface | |
$cookie | Cartalyst\Sentinel\Cookies\CookieInterface | |
$model | string | |
$single | boolean | |
return | void |
public function __construct(SessionInterface $session, CookieInterface $cookie, $model = null, $single = false)
{
if (isset($model)) {
$this->model = $model;
}
if (isset($session)) {
$this->session = $session;
}
if (isset($cookie)) {
$this->cookie = $cookie;
}
$this->single = $single;
}