Ejemplo n.º 1
0
    public function __construct($path, array $options = array())
    {
        $this->path = $path;
        $this->started = false;

        parent::__construct($options);
    }
Ejemplo n.º 2
0
 /**
  * @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);
 }