Skip to content

Fix typos in psr7.rst #10419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions components/psr7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ The bridge provides an interface of a factory called
that builds objects implementing PSR-7 interfaces from HttpFoundation objects.
It also provide a default implementation using Zend Diactoros internally.

The following code snippet explain how to convert a :class:`Symfony\\Component\\HttpFoundation\\Request`
to a ``Zend\\Diactoros\\ServerRequest`` class implementing the
``Psr\\Http\\Message\\ServerRequestInterface`` interface::
The following code snippet explains how to convert a :class:`Symfony\\Component\\HttpFoundation\\Request`
to a ``Zend\Diactoros\ServerRequest`` class implementing the
``Psr\Http\Message\ServerRequestInterface`` interface::

use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -49,8 +49,8 @@ to a ``Zend\\Diactoros\\ServerRequest`` class implementing the
$psrRequest = $psr7Factory->createRequest($symfonyRequest);

And now from a :class:`Symfony\\Component\\HttpFoundation\\Response` to a
``Zend\\Diactoros\\Response`` class implementing the
``Psr\\Http\\Message\\ResponseInterface`` interface::
``Zend\Diactoros\Response`` class implementing the
``Psr\Http\Message\ResponseInterface`` interface::

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

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

use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
Expand All @@ -78,7 +78,7 @@ The next snippet explain how to convert an object implementing the
$httpFoundationFactory = new HttpFoundationFactory();
$symfonyRequest = $httpFoundationFactory->createRequest($psrRequest);

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

use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
Expand Down