From 2ea888fdc687621e8ad6bce3ecb7a8e19cb7a87b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 1 Oct 2024 18:10:28 +0300 Subject: [PATCH] drop php-http/guzzle7-adapter --- composer.json | 1 - composer.lock | 178 +---------------- vendor/composer/autoload_classmap.php | 16 -- vendor/composer/autoload_files.php | 4 +- vendor/composer/autoload_psr4.php | 3 - vendor/composer/autoload_static.php | 38 +--- vendor/composer/installed.json | 185 ------------------ vendor/composer/installed.php | 43 +--- vendor/php-http/guzzle7-adapter/CHANGELOG.md | 18 -- vendor/php-http/guzzle7-adapter/LICENSE | 19 -- vendor/php-http/guzzle7-adapter/README.md | 45 ----- vendor/php-http/guzzle7-adapter/composer.json | 43 ---- .../guzzle7-adapter/phpstan.neon.dist | 5 - .../guzzle7-adapter/psalm.baseline.xml | 8 - vendor/php-http/guzzle7-adapter/psalm.xml | 16 -- .../php-http/guzzle7-adapter/src/Client.php | 75 ------- .../Exception/UnexpectedValueException.php | 9 - .../php-http/guzzle7-adapter/src/Promise.php | 132 ------------- .../php-http/httplug/.php-cs-fixer.dist.php | 16 -- vendor/php-http/httplug/CHANGELOG.md | 141 ------------- vendor/php-http/httplug/LICENSE | 20 -- vendor/php-http/httplug/README.md | 54 ----- vendor/php-http/httplug/composer.json | 40 ---- vendor/php-http/httplug/puli.json | 12 -- vendor/php-http/httplug/src/Exception.php | 14 -- .../httplug/src/Exception/HttpException.php | 65 ------ .../src/Exception/NetworkException.php | 28 --- .../src/Exception/RequestAwareTrait.php | 26 --- .../src/Exception/RequestException.php | 29 --- .../src/Exception/TransferException.php | 14 -- .../php-http/httplug/src/HttpAsyncClient.php | 25 --- vendor/php-http/httplug/src/HttpClient.php | 17 -- .../src/Promise/HttpFulfilledPromise.php | 54 ----- .../src/Promise/HttpRejectedPromise.php | 58 ------ vendor/php-http/promise/CHANGELOG.md | 48 ----- vendor/php-http/promise/LICENSE | 19 -- vendor/php-http/promise/README.md | 48 ----- vendor/php-http/promise/composer.json | 38 ---- .../php-http/promise/src/FulfilledPromise.php | 58 ------ vendor/php-http/promise/src/Promise.php | 69 ------- .../php-http/promise/src/RejectedPromise.php | 58 ------ 41 files changed, 7 insertions(+), 1782 deletions(-) delete mode 100644 vendor/php-http/guzzle7-adapter/CHANGELOG.md delete mode 100644 vendor/php-http/guzzle7-adapter/LICENSE delete mode 100644 vendor/php-http/guzzle7-adapter/README.md delete mode 100644 vendor/php-http/guzzle7-adapter/composer.json delete mode 100644 vendor/php-http/guzzle7-adapter/phpstan.neon.dist delete mode 100644 vendor/php-http/guzzle7-adapter/psalm.baseline.xml delete mode 100644 vendor/php-http/guzzle7-adapter/psalm.xml delete mode 100644 vendor/php-http/guzzle7-adapter/src/Client.php delete mode 100644 vendor/php-http/guzzle7-adapter/src/Exception/UnexpectedValueException.php delete mode 100644 vendor/php-http/guzzle7-adapter/src/Promise.php delete mode 100644 vendor/php-http/httplug/.php-cs-fixer.dist.php delete mode 100644 vendor/php-http/httplug/CHANGELOG.md delete mode 100644 vendor/php-http/httplug/LICENSE delete mode 100644 vendor/php-http/httplug/README.md delete mode 100644 vendor/php-http/httplug/composer.json delete mode 100644 vendor/php-http/httplug/puli.json delete mode 100644 vendor/php-http/httplug/src/Exception.php delete mode 100644 vendor/php-http/httplug/src/Exception/HttpException.php delete mode 100644 vendor/php-http/httplug/src/Exception/NetworkException.php delete mode 100644 vendor/php-http/httplug/src/Exception/RequestAwareTrait.php delete mode 100644 vendor/php-http/httplug/src/Exception/RequestException.php delete mode 100644 vendor/php-http/httplug/src/Exception/TransferException.php delete mode 100644 vendor/php-http/httplug/src/HttpAsyncClient.php delete mode 100644 vendor/php-http/httplug/src/HttpClient.php delete mode 100644 vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php delete mode 100644 vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php delete mode 100644 vendor/php-http/promise/CHANGELOG.md delete mode 100644 vendor/php-http/promise/LICENSE delete mode 100644 vendor/php-http/promise/README.md delete mode 100644 vendor/php-http/promise/composer.json delete mode 100644 vendor/php-http/promise/src/FulfilledPromise.php delete mode 100644 vendor/php-http/promise/src/Promise.php delete mode 100644 vendor/php-http/promise/src/RejectedPromise.php diff --git a/composer.json b/composer.json index 13f25e054..25e22ad4c 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,6 @@ "chillerlan/php-qrcode": "^4.3.3", "mervick/material-design-icons": "^2.2", "j4mie/idiorm": "dev-master", - "php-http/guzzle7-adapter": "^1.0", "soundasleep/html2text": "^2.1", "guzzlehttp/guzzle": "^7.0" }, diff --git a/composer.lock b/composer.lock index 651c951bc..a6575b2ad 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "74c91680c7bc99c8ee087408620b2fa5", + "content-hash": "478a27f2e837c92757db206b443c67a4", "packages": [ { "name": "beberlei/assert", @@ -715,182 +715,6 @@ }, "time": "2022-06-14T06:56:20+00:00" }, - { - "name": "php-http/guzzle7-adapter", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-http/guzzle7-adapter.git", - "reference": "fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/guzzle7-adapter/zipball/fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01", - "reference": "fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01", - "shasum": "" - }, - "require": { - "guzzlehttp/guzzle": "^7.0", - "php": "^7.2 | ^8.0", - "php-http/httplug": "^2.0", - "psr/http-client": "^1.0" - }, - "provide": { - "php-http/async-client-implementation": "1.0", - "php-http/client-implementation": "1.0", - "psr/http-client-implementation": "1.0" - }, - "require-dev": { - "php-http/client-integration-tests": "^3.0", - "phpunit/phpunit": "^8.0|^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.2.x-dev" - } - }, - "autoload": { - "psr-4": { - "Http\\Adapter\\Guzzle7\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com" - } - ], - "description": "Guzzle 7 HTTP Adapter", - "homepage": "http://httplug.io", - "keywords": [ - "Guzzle", - "http" - ], - "support": { - "issues": "https://github.com/php-http/guzzle7-adapter/issues", - "source": "https://github.com/php-http/guzzle7-adapter/tree/1.0.0" - }, - "time": "2021-03-09T07:35:15+00:00" - }, - { - "name": "php-http/httplug", - "version": "2.4.0", - "source": { - "type": "git", - "url": "https://github.com/php-http/httplug.git", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0", - "php-http/promise": "^1.1", - "psr/http-client": "^1.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0", - "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Http\\Client\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eric GELOEN", - "email": "geloen.eric@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "description": "HTTPlug, the HTTP client abstraction for PHP", - "homepage": "http://httplug.io", - "keywords": [ - "client", - "http" - ], - "support": { - "issues": "https://github.com/php-http/httplug/issues", - "source": "https://github.com/php-http/httplug/tree/2.4.0" - }, - "time": "2023-04-14T15:10:03+00:00" - }, - { - "name": "php-http/promise", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/php-http/promise.git", - "reference": "4c4c1f9b7289a2ec57cde7f1e9762a5789506f88" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/promise/zipball/4c4c1f9b7289a2ec57cde7f1e9762a5789506f88", - "reference": "4c4c1f9b7289a2ec57cde7f1e9762a5789506f88", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.3.2", - "phpspec/phpspec": "^5.1.2 || ^6.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "autoload": { - "psr-4": { - "Http\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Joel Wurtz", - "email": "joel.wurtz@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com" - } - ], - "description": "Promise used for asynchronous HTTP requests", - "homepage": "http://httplug.io", - "keywords": [ - "promise" - ], - "support": { - "issues": "https://github.com/php-http/promise/issues", - "source": "https://github.com/php-http/promise/tree/1.1.0" - }, - "time": "2020-07-07T09:29:14+00:00" - }, { "name": "psr/http-client", "version": "1.0.3", diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 7032e2461..9fcea529b 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -154,22 +154,6 @@ return array( 'Handler_Administrative' => $baseDir . '/classes/Handler_Administrative.php', 'Handler_Protected' => $baseDir . '/classes/Handler_Protected.php', 'Handler_Public' => $baseDir . '/classes/Handler_Public.php', - 'Http\\Adapter\\Guzzle7\\Client' => $vendorDir . '/php-http/guzzle7-adapter/src/Client.php', - 'Http\\Adapter\\Guzzle7\\Exception\\UnexpectedValueException' => $vendorDir . '/php-http/guzzle7-adapter/src/Exception/UnexpectedValueException.php', - 'Http\\Adapter\\Guzzle7\\Promise' => $vendorDir . '/php-http/guzzle7-adapter/src/Promise.php', - 'Http\\Client\\Exception' => $vendorDir . '/php-http/httplug/src/Exception.php', - 'Http\\Client\\Exception\\HttpException' => $vendorDir . '/php-http/httplug/src/Exception/HttpException.php', - 'Http\\Client\\Exception\\NetworkException' => $vendorDir . '/php-http/httplug/src/Exception/NetworkException.php', - 'Http\\Client\\Exception\\RequestAwareTrait' => $vendorDir . '/php-http/httplug/src/Exception/RequestAwareTrait.php', - 'Http\\Client\\Exception\\RequestException' => $vendorDir . '/php-http/httplug/src/Exception/RequestException.php', - 'Http\\Client\\Exception\\TransferException' => $vendorDir . '/php-http/httplug/src/Exception/TransferException.php', - 'Http\\Client\\HttpAsyncClient' => $vendorDir . '/php-http/httplug/src/HttpAsyncClient.php', - 'Http\\Client\\HttpClient' => $vendorDir . '/php-http/httplug/src/HttpClient.php', - 'Http\\Client\\Promise\\HttpFulfilledPromise' => $vendorDir . '/php-http/httplug/src/Promise/HttpFulfilledPromise.php', - 'Http\\Client\\Promise\\HttpRejectedPromise' => $vendorDir . '/php-http/httplug/src/Promise/HttpRejectedPromise.php', - 'Http\\Promise\\FulfilledPromise' => $vendorDir . '/php-http/promise/src/FulfilledPromise.php', - 'Http\\Promise\\Promise' => $vendorDir . '/php-http/promise/src/Promise.php', - 'Http\\Promise\\RejectedPromise' => $vendorDir . '/php-http/promise/src/RejectedPromise.php', 'IAuthModule' => $baseDir . '/classes/IAuthModule.php', 'IAuthModule2' => $baseDir . '/classes/IAuthModule2.php', 'ICatchall' => $baseDir . '/classes/ICatchall.php', diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index 6cdeb2c04..8510881e6 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -7,10 +7,9 @@ $baseDir = dirname($vendorDir); return array( '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', - '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', 'a4ecaeafb8cfb009ad0e052c90355e98' => $vendorDir . '/beberlei/assert/lib/Assert/functions.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', + '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', '51fcf4e06c07cc00c920b44bcd900e7a' => $vendorDir . '/thecodingmachine/safe/deprecated/apc.php', '288267919fedd3829a7732b5fb202197' => $vendorDir . '/thecodingmachine/safe/deprecated/array.php', 'a88cd08cfbf1600f7d5de6e587eee1fa' => $vendorDir . '/thecodingmachine/safe/deprecated/datetime.php', @@ -98,6 +97,7 @@ return array( '4af1dca6db8c527c6eed27bff85ff0e5' => $vendorDir . '/thecodingmachine/safe/generated/yaz.php', 'fe43ca06499ac37bc2dedd823af71eb5' => $vendorDir . '/thecodingmachine/safe/generated/zip.php', '356736db98a6834f0a886b8d509b0ecd' => $vendorDir . '/thecodingmachine/safe/generated/zlib.php', + '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', '9b38cf48e83f5d8f60375221cd213eee' => $vendorDir . '/phpstan/phpstan/bootstrap.php', 'ec07570ca5a812141189b1fa81503674' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert/Functions.php', '1c27df0e838db1c8a6427db7c5db3db2' => $baseDir . '/include/functions.php', diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index ac5d6fed7..e7db092fe 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -17,9 +17,6 @@ return array( 'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'), 'ParagonIE\\ConstantTime\\' => array($vendorDir . '/paragonie/constant_time_encoding/src'), 'OTPHP\\' => array($vendorDir . '/spomky-labs/otphp/src'), - 'Http\\Promise\\' => array($vendorDir . '/php-http/promise/src'), - 'Http\\Client\\' => array($vendorDir . '/php-http/httplug/src'), - 'Http\\Adapter\\Guzzle7\\' => array($vendorDir . '/php-http/guzzle7-adapter/src'), 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 027156d84..4dc835e99 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -8,10 +8,9 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056 { public static $files = array ( '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', - '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', 'a4ecaeafb8cfb009ad0e052c90355e98' => __DIR__ . '/..' . '/beberlei/assert/lib/Assert/functions.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', + '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', '51fcf4e06c07cc00c920b44bcd900e7a' => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated/apc.php', '288267919fedd3829a7732b5fb202197' => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated/array.php', 'a88cd08cfbf1600f7d5de6e587eee1fa' => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated/datetime.php', @@ -99,6 +98,7 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056 '4af1dca6db8c527c6eed27bff85ff0e5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/yaz.php', 'fe43ca06499ac37bc2dedd823af71eb5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/zip.php', '356736db98a6834f0a886b8d509b0ecd' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/zlib.php', + '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', '9b38cf48e83f5d8f60375221cd213eee' => __DIR__ . '/..' . '/phpstan/phpstan/bootstrap.php', 'ec07570ca5a812141189b1fa81503674' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert/Functions.php', '1c27df0e838db1c8a6427db7c5db3db2' => __DIR__ . '/../..' . '/include/functions.php', @@ -134,12 +134,6 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056 array ( 'OTPHP\\' => 6, ), - 'H' => - array ( - 'Http\\Promise\\' => 13, - 'Http\\Client\\' => 12, - 'Http\\Adapter\\Guzzle7\\' => 21, - ), 'G' => array ( 'GuzzleHttp\\Psr7\\' => 16, @@ -205,18 +199,6 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056 array ( 0 => __DIR__ . '/..' . '/spomky-labs/otphp/src', ), - 'Http\\Promise\\' => - array ( - 0 => __DIR__ . '/..' . '/php-http/promise/src', - ), - 'Http\\Client\\' => - array ( - 0 => __DIR__ . '/..' . '/php-http/httplug/src', - ), - 'Http\\Adapter\\Guzzle7\\' => - array ( - 0 => __DIR__ . '/..' . '/php-http/guzzle7-adapter/src', - ), 'GuzzleHttp\\Psr7\\' => array ( 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', @@ -396,22 +378,6 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056 'Handler_Administrative' => __DIR__ . '/../..' . '/classes/Handler_Administrative.php', 'Handler_Protected' => __DIR__ . '/../..' . '/classes/Handler_Protected.php', 'Handler_Public' => __DIR__ . '/../..' . '/classes/Handler_Public.php', - 'Http\\Adapter\\Guzzle7\\Client' => __DIR__ . '/..' . '/php-http/guzzle7-adapter/src/Client.php', - 'Http\\Adapter\\Guzzle7\\Exception\\UnexpectedValueException' => __DIR__ . '/..' . '/php-http/guzzle7-adapter/src/Exception/UnexpectedValueException.php', - 'Http\\Adapter\\Guzzle7\\Promise' => __DIR__ . '/..' . '/php-http/guzzle7-adapter/src/Promise.php', - 'Http\\Client\\Exception' => __DIR__ . '/..' . '/php-http/httplug/src/Exception.php', - 'Http\\Client\\Exception\\HttpException' => __DIR__ . '/..' . '/php-http/httplug/src/Exception/HttpException.php', - 'Http\\Client\\Exception\\NetworkException' => __DIR__ . '/..' . '/php-http/httplug/src/Exception/NetworkException.php', - 'Http\\Client\\Exception\\RequestAwareTrait' => __DIR__ . '/..' . '/php-http/httplug/src/Exception/RequestAwareTrait.php', - 'Http\\Client\\Exception\\RequestException' => __DIR__ . '/..' . '/php-http/httplug/src/Exception/RequestException.php', - 'Http\\Client\\Exception\\TransferException' => __DIR__ . '/..' . '/php-http/httplug/src/Exception/TransferException.php', - 'Http\\Client\\HttpAsyncClient' => __DIR__ . '/..' . '/php-http/httplug/src/HttpAsyncClient.php', - 'Http\\Client\\HttpClient' => __DIR__ . '/..' . '/php-http/httplug/src/HttpClient.php', - 'Http\\Client\\Promise\\HttpFulfilledPromise' => __DIR__ . '/..' . '/php-http/httplug/src/Promise/HttpFulfilledPromise.php', - 'Http\\Client\\Promise\\HttpRejectedPromise' => __DIR__ . '/..' . '/php-http/httplug/src/Promise/HttpRejectedPromise.php', - 'Http\\Promise\\FulfilledPromise' => __DIR__ . '/..' . '/php-http/promise/src/FulfilledPromise.php', - 'Http\\Promise\\Promise' => __DIR__ . '/..' . '/php-http/promise/src/Promise.php', - 'Http\\Promise\\RejectedPromise' => __DIR__ . '/..' . '/php-http/promise/src/RejectedPromise.php', 'IAuthModule' => __DIR__ . '/../..' . '/classes/IAuthModule.php', 'IAuthModule2' => __DIR__ . '/../..' . '/classes/IAuthModule2.php', 'ICatchall' => __DIR__ . '/../..' . '/classes/ICatchall.php', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index ef06aad7a..0c7bb1a8f 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1047,191 +1047,6 @@ }, "install-path": "../phar-io/version" }, - { - "name": "php-http/guzzle7-adapter", - "version": "1.0.0", - "version_normalized": "1.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-http/guzzle7-adapter.git", - "reference": "fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/guzzle7-adapter/zipball/fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01", - "reference": "fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01", - "shasum": "" - }, - "require": { - "guzzlehttp/guzzle": "^7.0", - "php": "^7.2 | ^8.0", - "php-http/httplug": "^2.0", - "psr/http-client": "^1.0" - }, - "provide": { - "php-http/async-client-implementation": "1.0", - "php-http/client-implementation": "1.0", - "psr/http-client-implementation": "1.0" - }, - "require-dev": { - "php-http/client-integration-tests": "^3.0", - "phpunit/phpunit": "^8.0|^9.3" - }, - "time": "2021-03-09T07:35:15+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.2.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Http\\Adapter\\Guzzle7\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com" - } - ], - "description": "Guzzle 7 HTTP Adapter", - "homepage": "http://httplug.io", - "keywords": [ - "Guzzle", - "http" - ], - "support": { - "issues": "https://github.com/php-http/guzzle7-adapter/issues", - "source": "https://github.com/php-http/guzzle7-adapter/tree/1.0.0" - }, - "install-path": "../php-http/guzzle7-adapter" - }, - { - "name": "php-http/httplug", - "version": "2.4.0", - "version_normalized": "2.4.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-http/httplug.git", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0", - "php-http/promise": "^1.1", - "psr/http-client": "^1.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0", - "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0" - }, - "time": "2023-04-14T15:10:03+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Http\\Client\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eric GELOEN", - "email": "geloen.eric@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "description": "HTTPlug, the HTTP client abstraction for PHP", - "homepage": "http://httplug.io", - "keywords": [ - "client", - "http" - ], - "support": { - "issues": "https://github.com/php-http/httplug/issues", - "source": "https://github.com/php-http/httplug/tree/2.4.0" - }, - "install-path": "../php-http/httplug" - }, - { - "name": "php-http/promise", - "version": "1.1.0", - "version_normalized": "1.1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-http/promise.git", - "reference": "4c4c1f9b7289a2ec57cde7f1e9762a5789506f88" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/promise/zipball/4c4c1f9b7289a2ec57cde7f1e9762a5789506f88", - "reference": "4c4c1f9b7289a2ec57cde7f1e9762a5789506f88", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.3.2", - "phpspec/phpspec": "^5.1.2 || ^6.2" - }, - "time": "2020-07-07T09:29:14+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Http\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Joel Wurtz", - "email": "joel.wurtz@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com" - } - ], - "description": "Promise used for asynchronous HTTP requests", - "homepage": "http://httplug.io", - "keywords": [ - "promise" - ], - "support": { - "issues": "https://github.com/php-http/promise/issues", - "source": "https://github.com/php-http/promise/tree/1.1.0" - }, - "install-path": "../php-http/promise" - }, { "name": "phpdocumentor/reflection-common", "version": "2.2.0", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index eece8200a..c3f948c71 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '8fcc68baf5b0ff964a0a4a045353462586e0e316', + 'reference' => 'df33ddaea1e46b5b923440d6383fa3ae85c4d60b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ '__root__' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '8fcc68baf5b0ff964a0a4a045353462586e0e316', + 'reference' => 'df33ddaea1e46b5b923440d6383fa3ae85c4d60b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -147,45 +147,6 @@ 'aliases' => array(), 'dev_requirement' => true, ), - 'php-http/async-client-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '1.0', - ), - ), - 'php-http/client-implementation' => array( - 'dev_requirement' => false, - 'provided' => array( - 0 => '1.0', - ), - ), - 'php-http/guzzle7-adapter' => array( - 'pretty_version' => '1.0.0', - 'version' => '1.0.0.0', - 'reference' => 'fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01', - 'type' => 'library', - 'install_path' => __DIR__ . '/../php-http/guzzle7-adapter', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'php-http/httplug' => array( - 'pretty_version' => '2.4.0', - 'version' => '2.4.0.0', - 'reference' => '625ad742c360c8ac580fcc647a1541d29e257f67', - 'type' => 'library', - 'install_path' => __DIR__ . '/../php-http/httplug', - 'aliases' => array(), - 'dev_requirement' => false, - ), - 'php-http/promise' => array( - 'pretty_version' => '1.1.0', - 'version' => '1.1.0.0', - 'reference' => '4c4c1f9b7289a2ec57cde7f1e9762a5789506f88', - 'type' => 'library', - 'install_path' => __DIR__ . '/../php-http/promise', - 'aliases' => array(), - 'dev_requirement' => false, - ), 'phpdocumentor/reflection-common' => array( 'pretty_version' => '2.2.0', 'version' => '2.2.0.0', diff --git a/vendor/php-http/guzzle7-adapter/CHANGELOG.md b/vendor/php-http/guzzle7-adapter/CHANGELOG.md deleted file mode 100644 index 9aa94407b..000000000 --- a/vendor/php-http/guzzle7-adapter/CHANGELOG.md +++ /dev/null @@ -1,18 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - -## [1.0.0] - 2021-03-09 - -- Stable release - no changes since 0.1.1 - -## [0.1.1] - 2020-10-21 - -* Allow installation with PHP 8 - -## [0.1.0] - 2020-08-16 - -First release diff --git a/vendor/php-http/guzzle7-adapter/LICENSE b/vendor/php-http/guzzle7-adapter/LICENSE deleted file mode 100644 index 0d6ce83b8..000000000 --- a/vendor/php-http/guzzle7-adapter/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2020 PHP HTTP Team - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/php-http/guzzle7-adapter/README.md b/vendor/php-http/guzzle7-adapter/README.md deleted file mode 100644 index 7e6b5b5dc..000000000 --- a/vendor/php-http/guzzle7-adapter/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# Guzzle 7 HTTP Adapter - -[![Latest Version](https://img.shields.io/github/release/php-http/guzzle7-adapter.svg?style=flat-square)](https://github.com/php-http/guzzle7-adapter/releases) -[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) -[![Total Downloads](https://img.shields.io/packagist/dt/php-http/guzzle7-adapter.svg?style=flat-square)](https://packagist.org/packages/php-http/guzzle7-adapter) - -**Guzzle 7 HTTP Adapter.** - -## Install - -Via Composer - -``` bash -$ composer require php-http/guzzle7-adapter -``` - -## Documentation - -Please see the [official documentation](http://docs.php-http.org/en/latest/clients/guzzle7-adapter.html). - -## Testing - -First launch the http server: - -```bash -$ ./vendor/bin/http_test_server > /dev/null 2>&1 & -``` - -Then the test suite: - -``` bash -$ composer test -``` - -## Contributing - -Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). - -## Security - -If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). - -## License - -The MIT License (MIT). Please see [License File](LICENSE) for more information. diff --git a/vendor/php-http/guzzle7-adapter/composer.json b/vendor/php-http/guzzle7-adapter/composer.json deleted file mode 100644 index 3299d2eb7..000000000 --- a/vendor/php-http/guzzle7-adapter/composer.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "php-http/guzzle7-adapter", - "description": "Guzzle 7 HTTP Adapter", - "license": "MIT", - "keywords": ["guzzle", "http"], - "homepage": "http://httplug.io", - "authors": [ - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com" - } - ], - "require": { - "php": "^7.2 | ^8.0", - "php-http/httplug": "^2.0", - "psr/http-client": "^1.0", - "guzzlehttp/guzzle": "^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^8.0|^9.3", - "php-http/client-integration-tests": "^3.0" - }, - "provide": { - "php-http/client-implementation": "1.0", - "php-http/async-client-implementation": "1.0", - "psr/http-client-implementation": "1.0" - }, - "autoload": { - "psr-4": { - "Http\\Adapter\\Guzzle7\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Http\\Adapter\\Guzzle7\\Tests\\": "tests/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "0.2.x-dev" - } - } -} diff --git a/vendor/php-http/guzzle7-adapter/phpstan.neon.dist b/vendor/php-http/guzzle7-adapter/phpstan.neon.dist deleted file mode 100644 index d42940e93..000000000 --- a/vendor/php-http/guzzle7-adapter/phpstan.neon.dist +++ /dev/null @@ -1,5 +0,0 @@ -parameters: - level: 5 - reportUnmatchedIgnoredErrors: false - paths: - - src diff --git a/vendor/php-http/guzzle7-adapter/psalm.baseline.xml b/vendor/php-http/guzzle7-adapter/psalm.baseline.xml deleted file mode 100644 index 96ab42cf9..000000000 --- a/vendor/php-http/guzzle7-adapter/psalm.baseline.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - $exception->getResponse() - - - diff --git a/vendor/php-http/guzzle7-adapter/psalm.xml b/vendor/php-http/guzzle7-adapter/psalm.xml deleted file mode 100644 index d70acfe4f..000000000 --- a/vendor/php-http/guzzle7-adapter/psalm.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - diff --git a/vendor/php-http/guzzle7-adapter/src/Client.php b/vendor/php-http/guzzle7-adapter/src/Client.php deleted file mode 100644 index a92ab06bd..000000000 --- a/vendor/php-http/guzzle7-adapter/src/Client.php +++ /dev/null @@ -1,75 +0,0 @@ - - */ -final class Client implements HttpClient, HttpAsyncClient -{ - /** - * @var ClientInterface - */ - private $guzzle; - - public function __construct(?ClientInterface $guzzle = null) - { - if (!$guzzle) { - $guzzle = self::buildClient(); - } - - $this->guzzle = $guzzle; - } - - /** - * Factory method to create the Guzzle 7 adapter with custom Guzzle configuration. - */ - public static function createWithConfig(array $config): Client - { - return new self(self::buildClient($config)); - } - - /** - * {@inheritdoc} - */ - public function sendRequest(RequestInterface $request): ResponseInterface - { - return $this->sendAsyncRequest($request)->wait(); - } - - /** - * {@inheritdoc} - */ - public function sendAsyncRequest(RequestInterface $request) - { - $promise = $this->guzzle->sendAsync($request); - - return new Promise($promise, $request); - } - - /** - * Build the Guzzle client instance. - */ - private static function buildClient(array $config = []): GuzzleClient - { - $handlerStack = new HandlerStack(Utils::chooseHandler()); - $handlerStack->push(Middleware::prepareBody(), 'prepare_body'); - $config = array_merge(['handler' => $handlerStack], $config); - - return new GuzzleClient($config); - } -} diff --git a/vendor/php-http/guzzle7-adapter/src/Exception/UnexpectedValueException.php b/vendor/php-http/guzzle7-adapter/src/Exception/UnexpectedValueException.php deleted file mode 100644 index f4731be07..000000000 --- a/vendor/php-http/guzzle7-adapter/src/Exception/UnexpectedValueException.php +++ /dev/null @@ -1,9 +0,0 @@ - - */ -final class Promise implements HttpPromise -{ - /** - * @var PromiseInterface - */ - private $promise; - - /** - * @var string State of the promise - */ - private $state; - - /** - * @var ResponseInterface - */ - private $response; - - /** - * @var HttplugException - */ - private $exception; - - /** - * @var RequestInterface - */ - private $request; - - public function __construct(PromiseInterface $promise, RequestInterface $request) - { - $this->request = $request; - $this->state = self::PENDING; - $this->promise = $promise->then(function ($response) { - $this->response = $response; - $this->state = self::FULFILLED; - - return $response; - }, function ($reason) use ($request) { - $this->state = self::REJECTED; - - if ($reason instanceof HttplugException) { - $this->exception = $reason; - } elseif ($reason instanceof GuzzleExceptions\GuzzleException) { - $this->exception = $this->handleException($reason, $request); - } elseif ($reason instanceof \Throwable) { - $this->exception = new HttplugException\TransferException('Invalid exception returned from Guzzle7', 0, $reason); - } else { - $this->exception = new UnexpectedValueException('Reason returned from Guzzle7 must be an Exception'); - } - - throw $this->exception; - }); - } - - /** - * {@inheritdoc} - */ - public function then(callable $onFulfilled = null, callable $onRejected = null) - { - return new static($this->promise->then($onFulfilled, $onRejected), $this->request); - } - - /** - * {@inheritdoc} - */ - public function getState() - { - return $this->state; - } - - /** - * {@inheritdoc} - */ - public function wait($unwrap = true) - { - $this->promise->wait(false); - - if ($unwrap) { - if (self::REJECTED == $this->getState()) { - throw $this->exception; - } - - return $this->response; - } - } - - /** - * Converts a Guzzle exception into an Httplug exception. - * - * @return HttplugException - */ - private function handleException(GuzzleExceptions\GuzzleException $exception, RequestInterface $request) - { - if ($exception instanceof GuzzleExceptions\ConnectException) { - return new HttplugException\NetworkException($exception->getMessage(), $exception->getRequest(), $exception); - } - - if ($exception instanceof GuzzleExceptions\RequestException) { - // Make sure we have a response for the HttpException - if ($exception->hasResponse()) { - return new HttplugException\HttpException( - $exception->getMessage(), - $exception->getRequest(), - $exception->getResponse(), - $exception - ); - } - - return new HttplugException\RequestException($exception->getMessage(), $exception->getRequest(), $exception); - } - - return new HttplugException\TransferException($exception->getMessage(), 0, $exception); - } -} diff --git a/vendor/php-http/httplug/.php-cs-fixer.dist.php b/vendor/php-http/httplug/.php-cs-fixer.dist.php deleted file mode 100644 index 83809c25d..000000000 --- a/vendor/php-http/httplug/.php-cs-fixer.dist.php +++ /dev/null @@ -1,16 +0,0 @@ -in(__DIR__.'/src') - ->name('*.php') -; - -$config = (new PhpCsFixer\Config()) - ->setRiskyAllowed(true) - ->setRules([ - '@Symfony' => true, - ]) - ->setFinder($finder) -; - -return $config; diff --git a/vendor/php-http/httplug/CHANGELOG.md b/vendor/php-http/httplug/CHANGELOG.md deleted file mode 100644 index efccd55d3..000000000 --- a/vendor/php-http/httplug/CHANGELOG.md +++ /dev/null @@ -1,141 +0,0 @@ -# Change Log - - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - - -## [2.4.0] - 2023-04-14 - -### Changed - -- Allow `psr/http-message` v2 in addition to v1 -- Deprecate `Http\Client\HttpClient`, use [PSR-18](https://www.php-fig.org/psr/psr-18/) instead - -## [2.3.0] - 2022-02-21 - -### Changed - -- Enabled the `$onRejected` callback of `HttpRejectedPromise` to return a promise for implementing a retry - mechanism [#168](https://github.com/php-http/httplug/pull/168) - -## [2.2.0] - 2020-07-13 - -### Changed - -- Support PHP 7.1-8.0 - -## [2.1.0] - 2019-12-27 - -### Changed - -- `Http\Client\Exception\NetworkException` no longer extends `Http\Client\Exception\RequestException`, - in accordance with [PSR-18](https://www.php-fig.org/psr/psr-18/) - -## [2.0.0] - 2018-10-31 - -This version is no BC break for consumers using HTTPlug. However, HTTP clients that -implement HTTPlug need to adjust because we add return type declarations. - -### Added - -- Support for PSR-18 (HTTP client). - -### Changed - -- **BC Break:** `HttpClient::sendRequest(RequestInterface $request)` has a return type annotation. The new -signature is `HttpClient::sendRequest(RequestInterface $request): ResponseInterface`. -- **BC Break:** `RequestException::getRequest()` has a return type annotation. The new -signature is `RequestException::getRequest(): RequestInterface`. - -### Removed - -- PHP 5 support - - -## [1.1.0] - 2016-08-31 - -### Added - -- HttpFulfilledPromise and HttpRejectedPromise which respect the HttpAsyncClient interface - - -## [1.0.0] - 2016-01-26 - -### Removed - -- Stability configuration from composer - - -## [1.0.0-RC1] - 2016-01-12 - -### Changed - -- Updated package files -- Updated promise dependency to RC1 - - -## [1.0.0-beta] - 2015-12-17 - -### Added - -- Puli configuration and binding types - -### Changed - -- Exception concept - - -## [1.0.0-alpha3] - 2015-12-13 - -### Changed - -- Async client does not throw exceptions - -### Removed - -- Promise interface moved to its own repository: [php-http/promise](https://github.com/php-http/promise) - - -## [1.0.0-alpha2] - 2015-11-16 - -### Added - -- Async client and Promise interface - - -## [1.0.0-alpha] - 2015-10-26 - -### Added - -- Better domain exceptions. - -### Changed - -- Purpose of the library: general HTTP CLient abstraction. - -### Removed - -- Request options: they should be configured at construction time. -- Multiple request sending: should be done asynchronously using Async Client. -- `getName` method - - -## 0.1.0 - 2015-06-03 - -### Added - -- Initial release - - -[Unreleased]: https://github.com/php-http/httplug/compare/v2.0.0...HEAD -[2.0.0]: https://github.com/php-http/httplug/compare/v1.1.0...HEAD -[1.1.0]: https://github.com/php-http/httplug/compare/v1.0.0...v1.1.0 -[1.0.0]: https://github.com/php-http/httplug/compare/v1.0.0-RC1...v1.0.0 -[1.0.0-RC1]: https://github.com/php-http/httplug/compare/v1.0.0-beta...v1.0.0-RC1 -[1.0.0-beta]: https://github.com/php-http/httplug/compare/v1.0.0-alpha3...v1.0.0-beta -[1.0.0-alpha3]: https://github.com/php-http/httplug/compare/v1.0.0-alpha2...v1.0.0-alpha3 -[1.0.0-alpha2]: https://github.com/php-http/httplug/compare/v1.0.0-alpha...v1.0.0-alpha2 -[1.0.0-alpha]: https://github.com/php-http/httplug/compare/v0.1.0...v1.0.0-alpha diff --git a/vendor/php-http/httplug/LICENSE b/vendor/php-http/httplug/LICENSE deleted file mode 100644 index 8cd264c6b..000000000 --- a/vendor/php-http/httplug/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2014 Eric GELOEN -Copyright (c) 2015 PHP HTTP Team - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/php-http/httplug/README.md b/vendor/php-http/httplug/README.md deleted file mode 100644 index a9b476a5e..000000000 --- a/vendor/php-http/httplug/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# HTTPlug - -[![Latest Version](https://img.shields.io/github/release/php-http/httplug.svg?style=flat-square)](https://github.com/php-http/httplug/releases) -[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) -[![Build Status](https://github.com/php-http/httplug/actions/workflows/ci.yml/badge.svg)](https://github.com/php-http/httplug/actions/workflows/ci.yml) -[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/httplug) -[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/httplug) -[![Total Downloads](https://img.shields.io/packagist/dt/php-http/httplug.svg?style=flat-square)](https://packagist.org/packages/php-http/httplug) - -[![Email](https://img.shields.io/badge/email-team@httplug.io-blue.svg?style=flat-square)](mailto:team@httplug.io) - -**HTTPlug, the HTTP client abstraction for PHP.** - - -## Intro - -HTTP client standard built on [PSR-7](http://www.php-fig.org/psr/psr-7/) HTTP -messages. The HttpAsyncClient defines an asynchronous HTTP client for PHP. - -This package also provides a synchronous HttpClient interface with the same -method signature as the [PSR-18](http://www.php-fig.org/psr/psr-18/) client. -For synchronous requests, we recommend using PSR-18 directly. - - -## History - -HTTPlug is the official successor of the [ivory http adapter](https://github.com/egeloen/ivory-http-adapter). -HTTPlug is a predecessor of [PSR-18](http://www.php-fig.org/psr/psr-18/) - - -## Install - -Via Composer - -``` bash -$ composer require php-http/httplug -``` - - -## Documentation - -Please see the [official documentation](http://docs.php-http.org). - - -## Testing - -``` bash -$ composer test -``` - - -## License - -The MIT License (MIT). Please see [License File](LICENSE) for more information. diff --git a/vendor/php-http/httplug/composer.json b/vendor/php-http/httplug/composer.json deleted file mode 100644 index 739177017..000000000 --- a/vendor/php-http/httplug/composer.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "php-http/httplug", - "description": "HTTPlug, the HTTP client abstraction for PHP", - "keywords": [ - "http", - "client" - ], - "homepage": "http://httplug.io", - "license": "MIT", - "authors": [ - { - "name": "Eric GELOEN", - "email": "geloen.eric@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "require": { - "php": "^7.1 || ^8.0", - "php-http/promise": "^1.1", - "psr/http-client": "^1.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0", - "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0" - }, - "autoload": { - "psr-4": { - "Http\\Client\\": "src/" - } - }, - "scripts": { - "test": "vendor/bin/phpspec run", - "test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml" - } -} diff --git a/vendor/php-http/httplug/puli.json b/vendor/php-http/httplug/puli.json deleted file mode 100644 index 416833152..000000000 --- a/vendor/php-http/httplug/puli.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "version": "1.0", - "name": "php-http/httplug", - "binding-types": { - "Http\\Client\\HttpAsyncClient": { - "description": "Async HTTP Client" - }, - "Http\\Client\\HttpClient": { - "description": "HTTP Client" - } - } -} diff --git a/vendor/php-http/httplug/src/Exception.php b/vendor/php-http/httplug/src/Exception.php deleted file mode 100644 index 4df164c9a..000000000 --- a/vendor/php-http/httplug/src/Exception.php +++ /dev/null @@ -1,14 +0,0 @@ - - */ -interface Exception extends PsrClientException -{ -} diff --git a/vendor/php-http/httplug/src/Exception/HttpException.php b/vendor/php-http/httplug/src/Exception/HttpException.php deleted file mode 100644 index 6c2a007a0..000000000 --- a/vendor/php-http/httplug/src/Exception/HttpException.php +++ /dev/null @@ -1,65 +0,0 @@ - - */ -class HttpException extends RequestException -{ - /** - * @var ResponseInterface - */ - protected $response; - - /** - * @param string $message - */ - public function __construct( - $message, - RequestInterface $request, - ResponseInterface $response, - \Exception $previous = null - ) { - parent::__construct($message, $request, $previous); - - $this->response = $response; - $this->code = $response->getStatusCode(); - } - - /** - * Returns the response. - * - * @return ResponseInterface - */ - public function getResponse() - { - return $this->response; - } - - /** - * Factory method to create a new exception with a normalized error message. - */ - public static function create( - RequestInterface $request, - ResponseInterface $response, - \Exception $previous = null - ) { - $message = sprintf( - '[url] %s [http method] %s [status code] %s [reason phrase] %s', - $request->getRequestTarget(), - $request->getMethod(), - $response->getStatusCode(), - $response->getReasonPhrase() - ); - - return new static($message, $request, $response, $previous); - } -} diff --git a/vendor/php-http/httplug/src/Exception/NetworkException.php b/vendor/php-http/httplug/src/Exception/NetworkException.php deleted file mode 100644 index 9b4f1e8fd..000000000 --- a/vendor/php-http/httplug/src/Exception/NetworkException.php +++ /dev/null @@ -1,28 +0,0 @@ - - */ -class NetworkException extends TransferException implements PsrNetworkException -{ - use RequestAwareTrait; - - /** - * @param string $message - */ - public function __construct($message, RequestInterface $request, \Exception $previous = null) - { - $this->setRequest($request); - - parent::__construct($message, 0, $previous); - } -} diff --git a/vendor/php-http/httplug/src/Exception/RequestAwareTrait.php b/vendor/php-http/httplug/src/Exception/RequestAwareTrait.php deleted file mode 100644 index 71b4bb8c9..000000000 --- a/vendor/php-http/httplug/src/Exception/RequestAwareTrait.php +++ /dev/null @@ -1,26 +0,0 @@ -request = $request; - } - - /** - * {@inheritdoc} - */ - public function getRequest(): RequestInterface - { - return $this->request; - } -} diff --git a/vendor/php-http/httplug/src/Exception/RequestException.php b/vendor/php-http/httplug/src/Exception/RequestException.php deleted file mode 100644 index f6c60ce56..000000000 --- a/vendor/php-http/httplug/src/Exception/RequestException.php +++ /dev/null @@ -1,29 +0,0 @@ - - */ -class RequestException extends TransferException implements PsrRequestException -{ - use RequestAwareTrait; - - /** - * @param string $message - */ - public function __construct($message, RequestInterface $request, \Exception $previous = null) - { - $this->setRequest($request); - - parent::__construct($message, 0, $previous); - } -} diff --git a/vendor/php-http/httplug/src/Exception/TransferException.php b/vendor/php-http/httplug/src/Exception/TransferException.php deleted file mode 100644 index a858cf5ec..000000000 --- a/vendor/php-http/httplug/src/Exception/TransferException.php +++ /dev/null @@ -1,14 +0,0 @@ - - */ -class TransferException extends \RuntimeException implements Exception -{ -} diff --git a/vendor/php-http/httplug/src/HttpAsyncClient.php b/vendor/php-http/httplug/src/HttpAsyncClient.php deleted file mode 100644 index c3b9d61aa..000000000 --- a/vendor/php-http/httplug/src/HttpAsyncClient.php +++ /dev/null @@ -1,25 +0,0 @@ - - */ -interface HttpAsyncClient -{ - /** - * Sends a PSR-7 request in an asynchronous way. - * - * Exceptions related to processing the request are available from the returned Promise. - * - * @return Promise resolves a PSR-7 Response or fails with an Http\Client\Exception - * - * @throws \Exception If processing the request is impossible (eg. bad configuration). - */ - public function sendAsyncRequest(RequestInterface $request); -} diff --git a/vendor/php-http/httplug/src/HttpClient.php b/vendor/php-http/httplug/src/HttpClient.php deleted file mode 100644 index 22b94aaf7..000000000 --- a/vendor/php-http/httplug/src/HttpClient.php +++ /dev/null @@ -1,17 +0,0 @@ -response = $response; - } - - /** - * {@inheritdoc} - */ - public function then(callable $onFulfilled = null, callable $onRejected = null) - { - if (null === $onFulfilled) { - return $this; - } - - try { - return new self($onFulfilled($this->response)); - } catch (Exception $e) { - return new HttpRejectedPromise($e); - } - } - - /** - * {@inheritdoc} - */ - public function getState() - { - return Promise::FULFILLED; - } - - /** - * {@inheritdoc} - */ - public function wait($unwrap = true) - { - if ($unwrap) { - return $this->response; - } - } -} diff --git a/vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php b/vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php deleted file mode 100644 index 624cc8a94..000000000 --- a/vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php +++ /dev/null @@ -1,58 +0,0 @@ -exception = $exception; - } - - /** - * {@inheritdoc} - */ - public function then(callable $onFulfilled = null, callable $onRejected = null) - { - if (null === $onRejected) { - return $this; - } - - try { - $result = $onRejected($this->exception); - if ($result instanceof Promise) { - return $result; - } - - return new HttpFulfilledPromise($result); - } catch (Exception $e) { - return new self($e); - } - } - - /** - * {@inheritdoc} - */ - public function getState() - { - return Promise::REJECTED; - } - - /** - * {@inheritdoc} - */ - public function wait($unwrap = true) - { - if ($unwrap) { - throw $this->exception; - } - } -} diff --git a/vendor/php-http/promise/CHANGELOG.md b/vendor/php-http/promise/CHANGELOG.md deleted file mode 100644 index 479deb8a7..000000000 --- a/vendor/php-http/promise/CHANGELOG.md +++ /dev/null @@ -1,48 +0,0 @@ -# Change Log - -## 1.1.0 - 2020-07-07 - -### Added - -- Test with PHP 7.1, 7.2, 7.3, 7.4 and 8.0 - -### Removed - -- PHP 5 and 7.0 support - -### Fixed - -- Fixed PHPDoc for `Promise::then` - -## 1.0.0 - 2016-01-26 - -### Removed - -- PSR-7 dependency - - -## 1.0.0-RC1 - 2016-01-12 - -### Added - -- Tests for full coverage - -## Changed - -- Updated package files -- Clarified wait method behavior -- Contributing guide moved to the documentation - - -## 0.1.1 - 2015-12-24 - -## Added - -- Fulfilled and Rejected promise implementations - - -## 0.1.0 - 2015-12-13 - -## Added - -- Promise interface diff --git a/vendor/php-http/promise/LICENSE b/vendor/php-http/promise/LICENSE deleted file mode 100644 index 4558d6f06..000000000 --- a/vendor/php-http/promise/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015-2016 PHP HTTP Team - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/php-http/promise/README.md b/vendor/php-http/promise/README.md deleted file mode 100644 index ee95e0933..000000000 --- a/vendor/php-http/promise/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# Promise - -[![Latest Version](https://img.shields.io/github/release/php-http/promise.svg?style=flat-square)](https://github.com/php-http/promise/releases) -[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) -[![Build Status](https://img.shields.io/travis/php-http/promise.svg?style=flat-square)](https://travis-ci.org/php-http/promise) -[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/promise.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/promise) -[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/promise.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/promise) -[![Total Downloads](https://img.shields.io/packagist/dt/php-http/promise.svg?style=flat-square)](https://packagist.org/packages/php-http/promise) - -**Promise used for asynchronous HTTP requests.** - -**Note:** This will eventually be removed/deprecated and replaced with the upcoming Promise PSR. - - -## Install - -Via Composer - -``` bash -$ composer require php-http/promise -``` - - -## Documentation - -Please see the [official documentation](http://docs.php-http.org/en/latest/components/promise.html). - - -## Testing - -``` bash -$ composer test -``` - - -## Contributing - -Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). - - -## Security - -If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). - - -## License - -The MIT License (MIT). Please see [License File](LICENSE) for more information. diff --git a/vendor/php-http/promise/composer.json b/vendor/php-http/promise/composer.json deleted file mode 100644 index 812167bc8..000000000 --- a/vendor/php-http/promise/composer.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "php-http/promise", - "description": "Promise used for asynchronous HTTP requests", - "license": "MIT", - "keywords": ["promise"], - "homepage": "http://httplug.io", - "authors": [ - { - "name": "Joel Wurtz", - "email": "joel.wurtz@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com" - } - ], - "require": { - "php" : "^7.1 || ^8.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage" : "^4.3.2", - "phpspec/phpspec": "^5.1.2 || ^6.2" - }, - "autoload": { - "psr-4": { - "Http\\Promise\\": "src/" - } - }, - "scripts": { - "test": "vendor/bin/phpspec run", - "test-ci": "vendor/bin/phpspec run -c phpspec.yml.ci" - }, - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - } -} diff --git a/vendor/php-http/promise/src/FulfilledPromise.php b/vendor/php-http/promise/src/FulfilledPromise.php deleted file mode 100644 index f60f686a2..000000000 --- a/vendor/php-http/promise/src/FulfilledPromise.php +++ /dev/null @@ -1,58 +0,0 @@ - - */ -final class FulfilledPromise implements Promise -{ - /** - * @var mixed - */ - private $result; - - /** - * @param $result - */ - public function __construct($result) - { - $this->result = $result; - } - - /** - * {@inheritdoc} - */ - public function then(callable $onFulfilled = null, callable $onRejected = null) - { - if (null === $onFulfilled) { - return $this; - } - - try { - return new self($onFulfilled($this->result)); - } catch (\Exception $e) { - return new RejectedPromise($e); - } - } - - /** - * {@inheritdoc} - */ - public function getState() - { - return Promise::FULFILLED; - } - - /** - * {@inheritdoc} - */ - public function wait($unwrap = true) - { - if ($unwrap) { - return $this->result; - } - } -} diff --git a/vendor/php-http/promise/src/Promise.php b/vendor/php-http/promise/src/Promise.php deleted file mode 100644 index 3258ed0d3..000000000 --- a/vendor/php-http/promise/src/Promise.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @author Márk Sági-Kazár - */ -interface Promise -{ - /** - * Promise has not been fulfilled or rejected. - */ - const PENDING = 'pending'; - - /** - * Promise has been fulfilled. - */ - const FULFILLED = 'fulfilled'; - - /** - * Promise has been rejected. - */ - const REJECTED = 'rejected'; - - /** - * Adds behavior for when the promise is resolved or rejected (response will be available, or error happens). - * - * If you do not care about one of the cases, you can set the corresponding callable to null - * The callback will be called when the value arrived and never more than once. - * - * @param callable|null $onFulfilled called when a response will be available - * @param callable|null $onRejected called when an exception occurs - * - * @return Promise a new resolved promise with value of the executed callback (onFulfilled / onRejected) - */ - public function then(callable $onFulfilled = null, callable $onRejected = null); - - /** - * Returns the state of the promise, one of PENDING, FULFILLED or REJECTED. - * - * @return string - */ - public function getState(); - - /** - * Wait for the promise to be fulfilled or rejected. - * - * When this method returns, the request has been resolved and if callables have been - * specified, the appropriate one has terminated. - * - * When $unwrap is true (the default), the response is returned, or the exception thrown - * on failure. Otherwise, nothing is returned or thrown. - * - * @param bool $unwrap Whether to return resolved value / throw reason or not - * - * @return mixed Resolved value, null if $unwrap is set to false - * - * @throws \Exception the rejection reason if $unwrap is set to true and the request failed - */ - public function wait($unwrap = true); -} diff --git a/vendor/php-http/promise/src/RejectedPromise.php b/vendor/php-http/promise/src/RejectedPromise.php deleted file mode 100644 index e396a40f7..000000000 --- a/vendor/php-http/promise/src/RejectedPromise.php +++ /dev/null @@ -1,58 +0,0 @@ - - */ -final class RejectedPromise implements Promise -{ - /** - * @var \Exception - */ - private $exception; - - /** - * @param \Exception $exception - */ - public function __construct(\Exception $exception) - { - $this->exception = $exception; - } - - /** - * {@inheritdoc} - */ - public function then(callable $onFulfilled = null, callable $onRejected = null) - { - if (null === $onRejected) { - return $this; - } - - try { - return new FulfilledPromise($onRejected($this->exception)); - } catch (\Exception $e) { - return new self($e); - } - } - - /** - * {@inheritdoc} - */ - public function getState() - { - return Promise::REJECTED; - } - - /** - * {@inheritdoc} - */ - public function wait($unwrap = true) - { - if ($unwrap) { - throw $this->exception; - } - } -}