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.')
])
);
}
/**

View File

@@ -24,6 +24,7 @@
"predis/predis": "^1.1",
"realrashid/sweet-alert": "^3.1",
"spatie/laravel-analytics": "^3.10",
"symfony/http-client": "^5.4",
"symfony/panther": "^0.7.1"
},
"require-dev": {

34
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "397d861160a8b5c62ed5576a8d9957f6",
"content-hash": "16a8f878bc25581466006fba725ba0e9",
"packages": [
{
"name": "asm89/stack-cors",
@@ -5176,26 +5176,26 @@
},
{
"name": "symfony/http-client",
"version": "v5.3.2",
"version": "v5.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client.git",
"reference": "d2464f48482223c7c6826cd8c6ed7929d1ce6093"
"reference": "8fe833b758bc5b325e9d96a913376d6d57a90fb0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-client/zipball/d2464f48482223c7c6826cd8c6ed7929d1ce6093",
"reference": "d2464f48482223c7c6826cd8c6ed7929d1ce6093",
"url": "https://api.github.com/repos/symfony/http-client/zipball/8fe833b758bc5b325e9d96a913376d6d57a90fb0",
"reference": "8fe833b758bc5b325e9d96a913376d6d57a90fb0",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"psr/log": "^1.0",
"symfony/deprecation-contracts": "^2.1",
"psr/log": "^1|^2|^3",
"symfony/deprecation-contracts": "^2.1|^3",
"symfony/http-client-contracts": "^2.4",
"symfony/polyfill-php73": "^1.11",
"symfony/polyfill-php80": "^1.15",
"symfony/service-contracts": "^1.0|^2"
"symfony/polyfill-php80": "^1.16",
"symfony/service-contracts": "^1.0|^2|^3"
},
"provide": {
"php-http/async-client-implementation": "*",
@@ -5211,11 +5211,12 @@
"guzzlehttp/promises": "^1.4",
"nyholm/psr7": "^1.0",
"php-http/httplug": "^1.0|^2.0",
"php-http/message-factory": "^1.0",
"psr/http-client": "^1.0",
"symfony/dependency-injection": "^4.4|^5.0",
"symfony/http-kernel": "^4.4.13|^5.1.5",
"symfony/process": "^4.4|^5.0",
"symfony/stopwatch": "^4.4|^5.0"
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
"symfony/http-kernel": "^4.4.13|^5.1.5|^6.0",
"symfony/process": "^4.4|^5.0|^6.0",
"symfony/stopwatch": "^4.4|^5.0|^6.0"
},
"type": "library",
"autoload": {
@@ -5242,8 +5243,11 @@
],
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
"homepage": "https://symfony.com",
"keywords": [
"http"
],
"support": {
"source": "https://github.com/symfony/http-client/tree/v5.3.2"
"source": "https://github.com/symfony/http-client/tree/v5.4.34"
},
"funding": [
{
@@ -5259,7 +5263,7 @@
"type": "tidelift"
}
],
"time": "2021-06-12T10:15:17+00:00"
"time": "2023-12-02T08:41:43+00:00"
},
{
"name": "symfony/http-client-contracts",