public function __construct($usersManagerAPI = null, $authCookieName = null, $authCookieValidTime = null, $authCookiePath = null)
{
if (empty($usersManagerAPI)) {
$usersManagerAPI = UsersManagerAPI::getInstance();
}
$this->usersManagerAPI = $usersManagerAPI;
if (empty($authCookieName)) {
$authCookieName = Config::getInstance()->General['login_cookie_name'];
}
$this->authCookieName = $authCookieName;
if (empty($authCookieValidTime)) {
$authCookieValidTime = Config::getInstance()->General['login_cookie_expire'];
}
$this->authCookieValidTime = $authCookieValidTime;
if (empty($authCookiePath)) {
$authCookiePath = Config::getInstance()->General['login_cookie_path'];
}
$this->authCookiePath = $authCookiePath;
}