Skip to content

Commit 65551a3

Browse files
committed
add missing requirements of symfony/http-client to composer plugin
1 parent bc31255 commit 65551a3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Composer/Plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ class Plugin implements PluginInterface, EventSubscriberInterface
4545
*/
4646
private const PROVIDE_RULES = [
4747
'php-http/async-client-implementation' => [
48-
'symfony/http-client:>=6.3' => ['guzzlehttp/promises', 'psr/http-factory-implementation'],
49-
'symfony/http-client' => ['guzzlehttp/promises', 'php-http/message-factory', 'psr/http-factory-implementation'],
48+
'symfony/http-client:>=6.3' => ['guzzlehttp/promises', 'psr/http-factory-implementation', 'php-http/httplug'],
49+
'symfony/http-client' => ['guzzlehttp/promises', 'php-http/message-factory', 'psr/http-factory-implementation', 'php-http/httplug'],
5050
'php-http/guzzle7-adapter' => [],
5151
'php-http/guzzle6-adapter' => [],
5252
'php-http/curl-client' => [],
5353
'php-http/react-adapter' => [],
5454
],
5555
'php-http/client-implementation' => [
56-
'symfony/http-client:>=6.3' => ['psr/http-factory-implementation'],
57-
'symfony/http-client' => ['php-http/message-factory', 'psr/http-factory-implementation'],
56+
'symfony/http-client:>=6.3' => ['psr/http-factory-implementation', 'php-http/httplug'],
57+
'symfony/http-client' => ['php-http/message-factory', 'psr/http-factory-implementation', 'php-http/httplug'],
5858
'php-http/guzzle7-adapter' => [],
5959
'php-http/guzzle6-adapter' => [],
6060
'php-http/cakephp-adapter' => [],
@@ -65,7 +65,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface
6565
'kriswallsmith/buzz:^1' => [],
6666
],
6767
'psr/http-client-implementation' => [
68-
'symfony/http-client' => ['psr/http-factory-implementation'],
68+
'symfony/http-client' => ['psr/http-factory-implementation', 'psr/http-client'],
6969
'guzzlehttp/guzzle' => [],
7070
'kriswallsmith/buzz:^1' => [],
7171
],

tests/Composer/PluginTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public static function provideMissingRequires()
9797
'php-http/async-client-implementation' => [
9898
'guzzlehttp/promises',
9999
'php-http/message-factory',
100+
'php-http/httplug',
100101
],
101102
'psr/http-factory-implementation' => [
102103
'nyholm/psr7',

0 commit comments

Comments
 (0)