File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -745,20 +745,15 @@ HTTPlug
745
745
The `HTTPlug `_ specification was published before PSR-18 and is superseded by
746
746
it. As such, you should not use it in newly written code. Yet, many libraries
747
747
still require v1 or v2 of it. The component is interoperable with them thanks to
748
- the ``HttplugClient `` adapter class. Similarly to ``Psr18Client `` implementing
749
- relevant parts of PSR-17, ``HttplugClient `` also implements the factory methods
750
- defined in the related ``php-http/message-factory `` package.
751
-
752
- Internally, the implementation relies on the ``Psr18Client ``, so that the
753
- ``psr/http-client `` package is needed to use this class:
748
+ the :class: `Symfony\\ Component\\ HttpClient\\ HttplugClient ` adapter class. Similarly
749
+ to ``Psr18Client `` implementing relevant parts of PSR-17, ``HttplugClient `` also
750
+ implements the factory methods defined in the related ``php-http/message-factory ``
751
+ package.
754
752
755
753
.. code-block :: terminal
756
754
757
755
# Let's suppose php-http/httplug is already required by the lib you want to use
758
756
759
- # installs the PSR-18 ClientInterface
760
- $ composer require psr/http-client
761
-
762
757
# installs an efficient implementation of response and stream factories
763
758
# with autowiring aliases provided by Symfony Flex
764
759
$ composer require nyholm/psr7
You can’t perform that action at this time.
0 commit comments