Skip to content

Commit

Permalink
add missing requirements of symfony/http-client to composer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Jun 19, 2023
1 parent bc31255 commit 65551a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Composer/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [],
Expand All @@ -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' => [],
],
Expand Down
1 change: 1 addition & 0 deletions tests/Composer/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 65551a3

Please sign in to comment.