private function setupClient($siteDomain) { $this->client = $this->client ? $this->client : new WordPressConnector(); $this->client->setUrl($this->siteUrl); $this->client->setDomain($siteDomain); $this->client->setRootFolder($this->config['wpRootFolder']); $this->client->followRedirects(true); $this->client->resetCookies(); $this->setCookiesFromOptions(); }