Elgg\PersistentLoginService::__construct PHP Метод

__construct() публичный Метод

Constructor
public __construct ( Database $db, ElggSession $session, ElggCrypto $crypto, array $cookie_config, string $cookie_token, integer $time = null )
$db Database The DB service
$session ElggSession The Elgg session
$crypto ElggCrypto The cryptography service
$cookie_config array The persistent login cookie settings
$cookie_token string The token from the request cookie
$time integer The current time
    public function __construct(Database $db, \ElggSession $session, \ElggCrypto $crypto, array $cookie_config, $cookie_token, $time = null)
    {
        $this->db = $db;
        $this->session = $session;
        $this->crypto = $crypto;
        $this->cookie_config = $cookie_config;
        $this->cookie_token = $cookie_token;
        $prefix = $this->db->prefix;
        $this->table = "{$prefix}users_remember_me_cookies";
        $this->time = is_numeric($time) ? (int) $time : time();
    }