public function login(ClientInterface $guzzle) { $postFields = [$this->siteConfig->getUsernameField() => $this->siteConfig->getUsername(), $this->siteConfig->getPasswordField() => $this->siteConfig->getPassword()] + $this->siteConfig->getExtraFields(); $guzzle->post($this->siteConfig->getLoginUri(), ['body' => $postFields, 'allow_redirects' => true, 'verify' => false]); return $this; }