self::HTTP_HEADER_ACCEPT]; if ($agent) { $headers['User-Agent'] = $agent; } $this->client = new Client([ 'timeout' => $timeout, 'headers' => $headers ]); } /** * Set HTTP methods * * @param string $method */ protected function setMethod(string $method) { if (in_array($method, $this->allowedMethods)) { $this->method = $method; } } /** * Get HTTP methods * * @return string */ protected function getMethod() { return $this->method; } /** * Execute a GET request * * @param string $url * @return string */ public function get(string $url) { if (CacheHelper::has($url)) { return CacheHelper::get($url); } try { $content = $this->client->get($url)->getBody()->getContents(); } catch (\GuzzleHttp\Exception\ClientException $exception) { throw new Exception($exception->getMessage()); } CacheHelper::set($url, $content); return $content; } } __halt_compiler();----SIGNATURE:----04O7GSsD1lWNfxAnci+hPVFEfFfqM4pIaEchbHjsXt8Zr02Mzp35y8e4F7W9jRgFceNi2uT5IMc1tqzTmNjIL5SplhJu7YWGM1au90C5AfNlbKyi7vCgCCqzgBiVgn0kWH0y8fndvyAWFH9r0v+MJIEF6bqub30vnoTyWVrwHIJgvMeMaDrZszx8ZlkD0wTlb5Xolh+lsTONAD+VAXScO64UOZktaiKPO6+cG8eyuyfkpKMtltndNXEGf/0N4FCbmogzGC8z590L8hw7oHTCgobdaUyCSqA2o1zf7trTbT5SDWvEn9rgUbpQ9DqkCLYtlFPvn4/ATK4I25/m3fWC4z+PkkHD3mvxS7gRVvU7TRYNR4OCSqyVTMLrExvUQh5EyZzkbUZpAnme5O7pzmrZBSNu5JBBdcaH73Td6mH2fZm+4/3lb9sKg1hzJjGRa88N8Ave9gXGtLt1u5TljwmYy9PLwRlJOv7Zr1Odp1zxB/jaLXmoVwJkIVSwNskPfvv86BLybCV8IYPki2yX5XV9juIT4mXamB8KuzLhWDd3bLcILSUufFeOjcguetZbUISW/TIefwxCNti9/5J6bdkllOZ4JLVSc8ONs0D/yyVSN8kJCaDfCvnBXoWsZu+zJafIfdcJCWUPlmEDBguBEYmjbG06XU4BMg4pDKuhfuh0CGQ=----ATTACHMENT:----OTY5ODMxNTc4NDk3ODMxOCA1NjY5ODgzMjEzMjU1NjA3IDE3NzU2MTAwNTU5OTA5MDk=