Commit 1d0f381f authored by Marcello Nuccio's avatar Marcello Nuccio

Fix doc formatting.

parent 8b7796f9
...@@ -51,7 +51,7 @@ begins with ``application/json``. Since we want to do this for every request, ...@@ -51,7 +51,7 @@ begins with ``application/json``. Since we want to do this for every request,
the easiest solution is to use a before filter. the easiest solution is to use a before filter.
We simply use ``json_decode`` to parse the content of the request and then We simply use ``json_decode`` to parse the content of the request and then
replace the request data on the ``$request`` object: replace the request data on the ``$request`` object::
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\ParameterBag;
...@@ -67,7 +67,7 @@ Controller implementation ...@@ -67,7 +67,7 @@ Controller implementation
------------------------- -------------------------
Our controller will create a new blog post from the data provided and will Our controller will create a new blog post from the data provided and will
return the post object, including its ``id``, as JSON: return the post object, including its ``id``, as JSON::
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment