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

Commit 16b7525

Browse files
committed
tweak routing auto documentation
1 parent 273b0f5 commit 16b7525

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

bundles/routing_auto/definitions.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Multiple Auto Routes
55
====================
66

7+
.. versionadded: 2.0
8+
9+
The capability to add multiple routes for a managed object has been
10+
introduced in RoutingAutoBundle 2.0.
11+
712
In the introduction you were shown an example using a single auto route schema
813
definition. It is possible to have multiple auto-route definitions for each of your
914
managed objects, and therefore multiple routes.
@@ -18,7 +23,7 @@ new ``edit`` schema definition which has the ``/admin`` prefix:
1823
1924
# src/Acme/ForumBundle/Resources/config/cmf_routing_auto.yml
2025
Acme\ForumBundle\Document\Topic:
21-
definitions:
26+
definitions:
2227
main:
2328
uri_schema: /my-forum/{category}/{title}
2429
defaults:

bundles/routing_auto/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
single: RoutingAuto; Bundles
33
single: RoutingAutoBundle
44

5-
Introduction
6-
============
5+
RoutingAutoBundle
6+
=================
77

88
The RoutingAutoBundle allows you to automatically persist routes when
99
documents are persisted based on URI schemas and contextual information.
@@ -120,7 +120,7 @@ document could be defined as follows:
120120
121121
# src/Acme/ForumBundle/Resources/config/cmf_routing_auto.yml
122122
Acme\ForumBundle\Document\Topic:
123-
definitions:
123+
definitions:
124124
main:
125125
uri_schema: /my-forum/{category}/{title}
126126
token_providers:

0 commit comments

Comments
 (0)