Skip to content

Commit 7295404

Browse files
Nyholmnicolas-grekas
authored andcommitted
Adapted the HTTPlug integration docs to Async Client
1 parent a7fdf17 commit 7295404

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

components/http_client.rst

+4-9
Original file line numberDiff line numberDiff line change
@@ -745,20 +745,15 @@ HTTPlug
745745
The `HTTPlug`_ specification was published before PSR-18 and is superseded by
746746
it. As such, you should not use it in newly written code. Yet, many libraries
747747
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.
754752

755753
.. code-block:: terminal
756754
757755
# Let's suppose php-http/httplug is already required by the lib you want to use
758756
759-
# installs the PSR-18 ClientInterface
760-
$ composer require psr/http-client
761-
762757
# installs an efficient implementation of response and stream factories
763758
# with autowiring aliases provided by Symfony Flex
764759
$ composer require nyholm/psr7

0 commit comments

Comments
 (0)