Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4612bd2

Browse filesBrowse files
committed
Fixed URLs to APIs outside of the Symfony project
1 parent b4f0842 commit 4612bd2
Copy full SHA for 4612bd2

File tree

1 file changed

+8
-8
lines changed
Filter options

1 file changed

+8
-8
lines changed

‎components/psr7.rst

Copy file name to clipboardExpand all lines: components/psr7.rst
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ that builds objects implementing PSR-7 interfaces from HttpFoundation objects.
3636
It also provide a default implementation using Zend Diactoros internally.
3737

3838
The following code snippet explain how to convert a :class:`Symfony\\Component\\HttpFoundation\\Request`
39-
to a Zend Diactoros :class:`Zend\\Diactoros\\ServerRequest` implementing the
40-
:class:`Psr\\Http\\Message\\ServerRequestInterface` interface::
39+
to a ``Zend\\Diactoros\\ServerRequest`` class implementing the
40+
``Psr\\Http\\Message\\ServerRequestInterface`` interface::
4141

4242
use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
4343
use Symfony\Component\HttpFoundation\Request;
@@ -48,9 +48,9 @@ to a Zend Diactoros :class:`Zend\\Diactoros\\ServerRequest` implementing the
4848
$psr7Factory = new DiactorosFactory();
4949
$psrRequest = $psr7Factory->createRequest($symfonyRequest);
5050

51-
And now from a :class:`Symfony\\Component\\HttpFoundation\\Response` to a Zend
52-
Diactoros :class:`Zend\\Diactoros\\Response` implementing the :class:`Psr\\Http\\Message\\ResponseInterface`
53-
interface::
51+
And now from a :class:`Symfony\\Component\\HttpFoundation\\Response` to a
52+
``Zend\\Diactoros\\Response`` class implementing the
53+
``Psr\\Http\\Message\\ResponseInterface`` interface::
5454

5555
use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
5656
use Symfony\Component\HttpFoundation\Response;
@@ -68,8 +68,8 @@ On the other hand, the bridge provide a factory interface called
6868
that builds HttpFoundation objects from objects implementing PSR-7 interfaces.
6969

7070
The next snippet explain how to convert an object implementing the
71-
:class:`Psr\\Http\\Message\\ServerRequestInterface`
72-
interface to a :class:`Symfony\\Component\\HttpFoundation\\Request` instance::
71+
``Psr\\Http\\Message\\ServerRequestInterface`` interface to a
72+
:class:`Symfony\\Component\\HttpFoundation\\Request` instance::
7373

7474
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
7575

@@ -78,7 +78,7 @@ interface to a :class:`Symfony\\Component\\HttpFoundation\\Request` instance::
7878
$httpFoundationFactory = new HttpFoundationFactory();
7979
$symfonyRequest = $httpFoundationFactory->createRequest($psrRequest);
8080

81-
From an object implementing the :class:`Psr\\Http\\Message\\ResponseInterface`
81+
From an object implementing the ``Psr\\Http\\Message\\ResponseInterface``
8282
to a :class:`Symfony\\Component\\HttpFoundation\\Response` instance::
8383

8484
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.