public function __construct($path, array $options = array()) { $this->path = $path; $this->started = false; parent::__construct($options); }
/** * @throws \InvalidArgumentException When "db_table" option is not provided */ public function __construct(\PDO $db, $options = null) { $this->db = $db; $options = array_merge(array('db_id_col' => 'sess_id', 'db_data_col' => 'sess_data', 'db_time_col' => 'sess_time'), $options); if (!array_key_exists('db_table', $options)) { throw new \InvalidArgumentException('You must provide the "db_table" option for a PdoSessionStorage.'); } parent::__construct($options); }