Skip to content

Commit fa8eae1

Browse files
committed
minor #18154 [PsrHttpMessageBridge] fix link to psr7 bridge classes (MrYamous)
This PR was merged into the 5.4 branch. Discussion ---------- [PsrHttpMessageBridge] fix link to psr7 bridge classes Fixes #18062 Commits ------- e27d369 fix link to psr7 bridge classes
2 parents aef616b + e27d369 commit fa8eae1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

components/psr7.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Usage
2929
Converting from HttpFoundation Objects to PSR-7
3030
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3131

32-
The bridge provides an interface of a factory called
33-
:class:`Symfony\\Bridge\\PsrHttpMessage\\HttpMessageFactoryInterface`
34-
that builds objects implementing PSR-7 interfaces from HttpFoundation objects.
32+
The bridge provides an interface of a factory called
33+
`HttpMessageFactoryInterface`_ that builds objects implementing PSR-7
34+
interfaces from HttpFoundation objects.
3535

3636
The following code snippet explains how to convert a :class:`Symfony\\Component\\HttpFoundation\\Request`
3737
to a ``Nyholm\Psr7\ServerRequest`` class implementing the
@@ -66,8 +66,8 @@ Converting Objects implementing PSR-7 Interfaces to HttpFoundation
6666
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6767

6868
On the other hand, the bridge provide a factory interface called
69-
:class:`Symfony\\Bridge\\PsrHttpMessage\\HttpFoundationFactoryInterface`
70-
that builds HttpFoundation objects from objects implementing PSR-7 interfaces.
69+
`HttpFoundationFactoryInterface`_ that builds HttpFoundation objects from
70+
objects implementing PSR-7 interfaces.
7171

7272
The next snippet explain how to convert an object implementing the
7373
``Psr\Http\Message\ServerRequestInterface`` interface to a
@@ -93,3 +93,5 @@ to a :class:`Symfony\\Component\\HttpFoundation\\Response` instance::
9393
.. _`PSR-7`: https://www.php-fig.org/psr/psr-7/
9494
.. _`PSR-17`: https://www.php-fig.org/psr/psr-17/
9595
.. _`libraries that implement psr/http-factory-implementation`: https://packagist.org/providers/psr/http-factory-implementation
96+
.. _`HttpMessageFactoryInterface`: https://github.com/symfony/psr-http-message-bridge/blob/main/HttpMessageFactoryInterface.php
97+
.. _`HttpFoundationFactoryInterface`: https://github.com/symfony/psr-http-message-bridge/blob/main/HttpFoundationFactoryInterface.php

0 commit comments

Comments
 (0)