public __construct ( array $options = [] ) | ||
$options | array |
public function __construct($options = [])
{
if (is_object($options)) {
$options = (array) $options;
}
$this->_ttl = (int) (isset($options['ttl']) ? $options['ttl'] : ini_get('session.gc_maxlifetime'));
if (isset($options['model'])) {
$this->_model = $options['model'];
}
}