GraphAware\Neo4j\Client\HttpDriver\Driver::session PHP Method

session() public method

public session ( ) : Session
return Session
    public function session()
    {
        $options = [];
        if (null !== $this->config->getTimeout()) {
            $options['timeout'] = $this->config->getTimeout();
        }
        if (null !== $this->config->getCurlInterface()) {
            $options['curl'][10062] = $this->config->getCurlInterface();
        }
        $options['curl'][74] = true;
        $options['curl'][75] = true;
        return new Session($this->uri, new Client($options), $this->config);
    }