This commit is contained in:
Mohamed jinas
2024-01-13 03:12:20 +05:00
parent 2bf4cddd46
commit 4eb74f4692
3 changed files with 26 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Services\Feeds;
use Goutte\Client;
use Illuminate\Support\Carbon;
use Symfony\Component\HttpClient\HttpClient;
class AdhadhuFeed implements Feed
{
@@ -11,15 +12,11 @@ class AdhadhuFeed implements Feed
public function __construct()
{
$client = new Client();
$guzzleClient = new \GuzzleHttp\Client([
"proxy" => config('karudhaas.proxy.host')
]);
$client->setClient($guzzleClient);
$this->client = $client;
$this->client = new Client(
HttpClient::create([
"proxy" => config('karudhaas.proxy.')
])
);
}
/**