Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 698470d

Browse files
committed
Merge pull request #543 from symfony-cmf/proofread
Proof reading fixes for RA docs
2 parents d0ca36b + 02bb776 commit 698470d

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

bundles/routing_auto/conflict_resolvers.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Conflict Resolvers
55
==================
66

77
Conflict resolvers are invoked when the system detects that a newly generated
8-
route would conflict with an route already existing in the route repository.
9-
The task of a conflict resolver is to decide what happends in such cases.
8+
route would conflict with a route already existing in the route repository.
109

1110
This section details the conflict resolvers which are provided by default.
1211

@@ -65,7 +64,7 @@ To create a custom conflict resolver, you have to implement
6564
``resolveConflict`` which has access to the ``UriContext``. It returns the new
6665
route.
6766

68-
The following example will append an unique string to the URI to resolve a
67+
The following example will append a unique string to the URI to resolve a
6968
conflict::
7069

7170
namespace Symfony\Cmf\Component\RoutingAuto\ConflictResolver;

bundles/routing_auto/defunct_route_handlers.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ action.
3838
leave_redirect
3939
--------------
4040

41-
The leave redirect will automatically update old routes to redirect the browser
42-
to the route which has replaced it. This effectively means you can rename your
43-
objects without worrying about users recieving HTTP 404 responses.
41+
The ``LeaveRedirectDefunctRouteHandler`` will automatically update old routes
42+
to redirect the browser to the route which has replaced it. This effectively
43+
means you can rename your objects without worrying about users receiving HTTP
44+
404 responses.
4445

4546
The handler will replace the old route with a ``RedirectRoute`` at the same
4647
path.
@@ -108,7 +109,7 @@ Creating a Custom Defunct Route Handler
108109
To create a custom default route handler, you have to implement
109110
``DefunctRouteHandlerInterface``. This requires a method ``handleDefunctRoutes()``.
110111

111-
They are not all-together trivial - the following handler removes old routes and is
112+
They are not alltogether trivial - the following handler removes old routes and is
112113
the default handler::
113114

114115
namespace Symfony\Cmf\Component\RoutingAuto\DefunctRouteHandler;

bundles/routing_auto/token_providers.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Token Providers
66

77
Token providers provide values for the tokens specified in the URI schemas.
88
Such values can be derived form the object for which the route is being
9-
generated or from the environment (e.g. the you could use the current locale in
9+
generated or from the environment (e.g. you could use the current locale in
1010
the route).
1111

1212

@@ -18,14 +18,6 @@ The ``content_method`` provider allows the content object (e.g. a forum
1818
method as it allows the content document to do whatever it can to produce the
1919
route.
2020

21-
Options
22-
~~~~~~~
23-
24-
``method``
25-
**required** Method used to return the route name/path/path elements.
26-
``slugify``
27-
If the return value should be slugified, default is ``true``.
28-
2921
.. configuration-block::
3022

3123
.. code-block:: yaml
@@ -101,7 +93,7 @@ content_locale
10193
--------------
10294

10395
The ``content_locale`` provider will provide the locale (e.g. ``fr``, ``de``,
104-
etc) from the subject object. It ultimately it determines the locale from the
96+
etc) from the subject object. It ultimately determines the locale from the
10597
storage specific adapter - so it is dependent upon the adapter supporting this
10698
feature.
10799

0 commit comments

Comments
 (0)