Phalcon\Session\Adapter\HandlerSocket::__construct PHP Метод

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

Class constructor.
public __construct ( array $options = [] )
$options array associative array of options
    public function __construct($options = [])
    {
        // initialize the handlersocket database
        if (empty($options)) {
            $this->init($this->options);
        } else {
            $this->init($options);
        }
        //set object as the save handler
        session_set_save_handler([$this, 'open'], [$this, 'close'], [$this, 'read'], [$this, 'write'], [$this, 'destroy'], [$this, 'gc']);
    }