/** * Logout method */ public function logout() { try { $this->curl->exec($this->routes->getLogoutUrl()); $this->cookieStorage->deleteCurlCookieFile(); } catch (\Exception $e) { throw new AlmAuthenticationException('Authentication error : ' . $e->getMessage()); } return $this; }