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:----RBYp6/+lldobgYtcdOg7cvJDGoFmDZGn5ray4HehBQwDRn7ePCWe7PDh7k7rOP+AuCU7N8/B8OjVxffUwSrfPySqrlkvxVxc/HyPUn6ZOOtoE8AQewhx9diQ5i00OJ/v0+grAPl9Ue1HOhdCDSxkRg9mL0Nof7Kol3o4e5R/dWy28IfdWIbe55G6ogFE0xHreTvWFo5yb3l91F+xn126nha5Vorm397CE8hLu0YpRKhE5b80l/r3AsnVgM1K5ySTom6fm/q3zKpUgSt8Ncz5QWbA/EOBk4UaPk6888aEtVzX8ry6HmrEO0wXx7xf7W526l3Tv/iY+uV6S8OFoGfLK4Yop3VHdmEycz2jNUCkyLBGkVYhkM4AI862g/R9cXJzkvx4LSXKyygOCEjzNH/OxURormQYjpXJGKjb4o+kZIKkQpb9dsjGLk8hMokyaLTTvvHJuW5eZ843xy6nEiCszE2/D/RTtX/xcuyZHs6gwu2QLV5GcauIP06KbNxxXRnkILJaZvan+WKurGANcYpsNgNcPtNTmJKP9JJOyIoCbBYeSVvPLsoO7/9VnpT94gTy4IMmLUddEvmBZPYLTcZ9s89OywYQynRTkCPYZRfooqIBZXMY6FCDoPoGeZRhTTwitnD2m6ubfVL7a5ZVyYtSMZRbEdlWEjVOModyQBAj9hA=----ATTACHMENT:----NjYyMTMwNjk4MzgyNzg0MCA3MTM1OTQ2MDk1NjM1NTEyIDMyMzkzOTA3NTY0MzU3NjQ=