Skip to content

Commit 2a26b52

Browse files
committed
[symfony#1909] Minor tweaks for refactoring away from "we" language
1 parent 15b504d commit 2a26b52

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cookbook/routing/redirect_in_config.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ How to configure a redirect to another route without a custom controller
77
This guide explains how to configure a redirect from one route to another
88
without using a custom controller.
99

10-
Let's assume that there is no useful default controller for the ``/`` path of
11-
your application and you want to redirect theses requests to ``/app``.
10+
Assume that there is no useful default controller for the ``/`` path of
11+
your application and you want to redirect these requests to ``/app``.
1212

1313
Your configuration will look like this:
1414

@@ -26,15 +26,15 @@ Your configuration will look like this:
2626
path: /app
2727
permanent: true
2828
29-
Your ``AppBundle`` is registered to handle all requests under ``/app``.
30-
31-
You configure a route for the ``/`` path and let :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController`
32-
handle it. This controller is built-in and offers two methods for redirecting request:
33-
34-
* ``redirect`` redirects to another *route*. You must provide the ``route``
35-
parameter with the *name* of the route you want to redirect to.
29+
In this example, you configure a route for the ``/`` path and let :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController`
30+
handle it. This controller comes standard with Symfony and offers two actions
31+
for redirecting request:
3632

3733
* ``urlRedirect`` redirects to another *path*. You must provide the ``path``
3834
parameter containing the path of the resource you want to redirect to.
3935

40-
The ``permanent`` switch tells both methods to issue a 301 HTTP status code.
36+
* ``redirect`` (not shown here) redirects to another *route*. You must provide the ``route``
37+
parameter with the *name* of the route you want to redirect to.
38+
39+
The ``permanent`` switch tells both methods to issue a 301 HTTP status code
40+
instead of the default ``302`` status code.

cookbook/symfony1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ As you'll see, many tasks are tackled in a slightly different way. You'll
1515
come to appreciate these minor differences as they promote stable, predictable,
1616
testable and decoupled code in your Symfony2 applications.
1717

18-
So, sit back and relax as your taken from "then" to "now".
18+
So, sit back and relax as you travel from "then" to "now".
1919

2020
Directory Structure
2121
-------------------

0 commit comments

Comments
 (0)