src/Wallhaven/Wallhaven.php
private function initClient($withCookies = false)
    {

        if ($withCookies) {
            $jar = new CookieJar();
            $this->client = new Client(
                [
                    'base_uri' => self::URL_HOME,
                    'cookies'  => $jar
                ]);
        } else {
            $this->client = new Client(['base_uri' => self::URL_HOME]);
        }
    }
private function initClient($withCookies = false)
    {

        if ($withCookies) {
            $jar = new CookieJar();
            $this->client = new Client(
                [
                    'base_uri' => self::URL_HOME,
                    'cookies'  => $jar
                ]);
        } else {
            $this->client = new Client(['base_uri' => self::URL_HOME]);
        }
    }
Initialize HTTP client.

@param bool $withCookies Whether cookies should be enabled.