From 65551a347d9e5812e289615cc5614a9f1cba295c Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Sat, 17 Jun 2023 09:52:10 +0200 Subject: [PATCH] add missing requirements of symfony/http-client to composer plugin --- src/Composer/Plugin.php | 10 +++++----- tests/Composer/PluginTest.php | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Composer/Plugin.php b/src/Composer/Plugin.php index 008f3d0..32ef401 100644 --- a/src/Composer/Plugin.php +++ b/src/Composer/Plugin.php @@ -45,16 +45,16 @@ class Plugin implements PluginInterface, EventSubscriberInterface */ private const PROVIDE_RULES = [ 'php-http/async-client-implementation' => [ - 'symfony/http-client:>=6.3' => ['guzzlehttp/promises', 'psr/http-factory-implementation'], - 'symfony/http-client' => ['guzzlehttp/promises', 'php-http/message-factory', 'psr/http-factory-implementation'], + 'symfony/http-client:>=6.3' => ['guzzlehttp/promises', 'psr/http-factory-implementation', 'php-http/httplug'], + 'symfony/http-client' => ['guzzlehttp/promises', 'php-http/message-factory', 'psr/http-factory-implementation', 'php-http/httplug'], 'php-http/guzzle7-adapter' => [], 'php-http/guzzle6-adapter' => [], 'php-http/curl-client' => [], 'php-http/react-adapter' => [], ], 'php-http/client-implementation' => [ - 'symfony/http-client:>=6.3' => ['psr/http-factory-implementation'], - 'symfony/http-client' => ['php-http/message-factory', 'psr/http-factory-implementation'], + 'symfony/http-client:>=6.3' => ['psr/http-factory-implementation', 'php-http/httplug'], + 'symfony/http-client' => ['php-http/message-factory', 'psr/http-factory-implementation', 'php-http/httplug'], 'php-http/guzzle7-adapter' => [], 'php-http/guzzle6-adapter' => [], 'php-http/cakephp-adapter' => [], @@ -65,7 +65,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface 'kriswallsmith/buzz:^1' => [], ], 'psr/http-client-implementation' => [ - 'symfony/http-client' => ['psr/http-factory-implementation'], + 'symfony/http-client' => ['psr/http-factory-implementation', 'psr/http-client'], 'guzzlehttp/guzzle' => [], 'kriswallsmith/buzz:^1' => [], ], diff --git a/tests/Composer/PluginTest.php b/tests/Composer/PluginTest.php index 5c18925..d4e2e7c 100644 --- a/tests/Composer/PluginTest.php +++ b/tests/Composer/PluginTest.php @@ -97,6 +97,7 @@ public static function provideMissingRequires() 'php-http/async-client-implementation' => [ 'guzzlehttp/promises', 'php-http/message-factory', + 'php-http/httplug', ], 'psr/http-factory-implementation' => [ 'nyholm/psr7',