Phalcon\Session\Adapter\Mongo::__construct PHP Method

__construct() public method

Class constructor.
public __construct ( array $options = null )
$options array
    public function __construct($options = null)
    {
        if (!isset($options['collection'])) {
            throw new Exception("The parameter 'collection' is required");
        }
        session_set_save_handler([$this, 'open'], [$this, 'close'], [$this, 'read'], [$this, 'write'], [$this, 'destroy'], [$this, 'gc']);
        parent::__construct($options);
    }