src/OptionManager.php
public function cookie($domain)
    {
        $this->bag->set(CURLOPT_COOKIEJAR, $this->getPath($domain, 'cookie'));
        $this->bag->set(CURLOPT_COOKIEFILE, $this->getPath($domain, 'cookie'));

        return $this;
    }
public function cookie($domain)
    {
        $this->bag->set(CURLOPT_COOKIEJAR, $this->getPath($domain, 'cookie'));
        $this->bag->set(CURLOPT_COOKIEFILE, $this->getPath($domain, 'cookie'));

        return $this;
    }
public function cookie ( $ domain ) { $ this -> bag -> set ( CURLOPT_COOKIEJAR , $ this -> getPath ( $ domain , 'cookie' ) ) ; $ this -> bag -> set ( CURLOPT_COOKIEFILE , $ this -> getPath ( $ domain , 'cookie' ) ) ; return $ this ; }
Enable saving and reading cookies

@param string $domain
@return $this
Enable saving and reading cookies