Skip to content

Commit e5558d2

Browse files
committed
fixed markup
1 parent 1389e48 commit e5558d2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

book/controller.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,12 @@ perform a 301 (permanent) redirect, modify the second argument::
395395
.. tip::
396396

397397
The ``redirect()`` method is simply a shortcut that creates a ``Response``
398-
object that specializes in redirecting the user. It's equivalent to::
399-
398+
object that specializes in redirecting the user. It's equivalent to:
399+
400+
.. code-block:: php
401+
400402
use Symfony\Component\HttpFoundation\RedirectResponse;
401-
403+
402404
return new RedirectResponse($this->generateUrl('homepage'));
403405
404406
.. index::

0 commit comments

Comments
 (0)