WIP
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Services\Feeds;
|
|||||||
|
|
||||||
use Goutte\Client;
|
use Goutte\Client;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
|
use Symfony\Component\HttpClient\HttpClient;
|
||||||
|
|
||||||
class AdhadhuFeed implements Feed
|
class AdhadhuFeed implements Feed
|
||||||
{
|
{
|
||||||
@@ -11,15 +12,11 @@ class AdhadhuFeed implements Feed
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$client = new Client();
|
$this->client = new Client(
|
||||||
|
HttpClient::create([
|
||||||
$guzzleClient = new \GuzzleHttp\Client([
|
"proxy" => config('karudhaas.proxy.')
|
||||||
"proxy" => config('karudhaas.proxy.host')
|
])
|
||||||
]);
|
);
|
||||||
|
|
||||||
$client->setClient($guzzleClient);
|
|
||||||
|
|
||||||
$this->client = $client;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
"predis/predis": "^1.1",
|
"predis/predis": "^1.1",
|
||||||
"realrashid/sweet-alert": "^3.1",
|
"realrashid/sweet-alert": "^3.1",
|
||||||
"spatie/laravel-analytics": "^3.10",
|
"spatie/laravel-analytics": "^3.10",
|
||||||
|
"symfony/http-client": "^5.4",
|
||||||
"symfony/panther": "^0.7.1"
|
"symfony/panther": "^0.7.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|||||||
34
composer.lock
generated
34
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "397d861160a8b5c62ed5576a8d9957f6",
|
"content-hash": "16a8f878bc25581466006fba725ba0e9",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "asm89/stack-cors",
|
"name": "asm89/stack-cors",
|
||||||
@@ -5176,26 +5176,26 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/http-client",
|
"name": "symfony/http-client",
|
||||||
"version": "v5.3.2",
|
"version": "v5.4.34",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/http-client.git",
|
"url": "https://github.com/symfony/http-client.git",
|
||||||
"reference": "d2464f48482223c7c6826cd8c6ed7929d1ce6093"
|
"reference": "8fe833b758bc5b325e9d96a913376d6d57a90fb0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/http-client/zipball/d2464f48482223c7c6826cd8c6ed7929d1ce6093",
|
"url": "https://api.github.com/repos/symfony/http-client/zipball/8fe833b758bc5b325e9d96a913376d6d57a90fb0",
|
||||||
"reference": "d2464f48482223c7c6826cd8c6ed7929d1ce6093",
|
"reference": "8fe833b758bc5b325e9d96a913376d6d57a90fb0",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.2.5",
|
"php": ">=7.2.5",
|
||||||
"psr/log": "^1.0",
|
"psr/log": "^1|^2|^3",
|
||||||
"symfony/deprecation-contracts": "^2.1",
|
"symfony/deprecation-contracts": "^2.1|^3",
|
||||||
"symfony/http-client-contracts": "^2.4",
|
"symfony/http-client-contracts": "^2.4",
|
||||||
"symfony/polyfill-php73": "^1.11",
|
"symfony/polyfill-php73": "^1.11",
|
||||||
"symfony/polyfill-php80": "^1.15",
|
"symfony/polyfill-php80": "^1.16",
|
||||||
"symfony/service-contracts": "^1.0|^2"
|
"symfony/service-contracts": "^1.0|^2|^3"
|
||||||
},
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
"php-http/async-client-implementation": "*",
|
"php-http/async-client-implementation": "*",
|
||||||
@@ -5211,11 +5211,12 @@
|
|||||||
"guzzlehttp/promises": "^1.4",
|
"guzzlehttp/promises": "^1.4",
|
||||||
"nyholm/psr7": "^1.0",
|
"nyholm/psr7": "^1.0",
|
||||||
"php-http/httplug": "^1.0|^2.0",
|
"php-http/httplug": "^1.0|^2.0",
|
||||||
|
"php-http/message-factory": "^1.0",
|
||||||
"psr/http-client": "^1.0",
|
"psr/http-client": "^1.0",
|
||||||
"symfony/dependency-injection": "^4.4|^5.0",
|
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
|
||||||
"symfony/http-kernel": "^4.4.13|^5.1.5",
|
"symfony/http-kernel": "^4.4.13|^5.1.5|^6.0",
|
||||||
"symfony/process": "^4.4|^5.0",
|
"symfony/process": "^4.4|^5.0|^6.0",
|
||||||
"symfony/stopwatch": "^4.4|^5.0"
|
"symfony/stopwatch": "^4.4|^5.0|^6.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -5242,8 +5243,11 @@
|
|||||||
],
|
],
|
||||||
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
|
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
|
"keywords": [
|
||||||
|
"http"
|
||||||
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/http-client/tree/v5.3.2"
|
"source": "https://github.com/symfony/http-client/tree/v5.4.34"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -5259,7 +5263,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-06-12T10:15:17+00:00"
|
"time": "2023-12-02T08:41:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/http-client-contracts",
|
"name": "symfony/http-client-contracts",
|
||||||
|
|||||||
Reference in New Issue
Block a user