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

Commit 82fefd6

Browse files
committed
Revert "Documentation for multiple auto routes feature"
This reverts commit 02a3caf.
1 parent 682e26d commit 82fefd6

File tree

4 files changed

+8
-112
lines changed

4 files changed

+8
-112
lines changed

bundles/routing_auto/definitions.rst

Lines changed: 0 additions & 99 deletions
This file was deleted.

bundles/routing_auto/defunct_route_handlers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ can be configured as follows:
9292
<controller-by-type
9393
type="cmf_routing_auto.redirect">
9494
cmf_routing_auto.redirect_controller:redirectAction
95-
</controller-by-type>
95+
</controller-by-class>
9696
</dynamic>
9797
</config>
9898

bundles/routing_auto/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RoutingAutoBundle
88
token_providers
99
conflict_resolvers
1010
defunct_route_handlers
11-
definitions
11+

bundles/routing_auto/introduction.rst

Lines changed: 6 additions & 11 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.
@@ -93,7 +93,7 @@ forum topic with the following fictional URI:
9393

9494
- ``https://mywebsite.com/my-forum/drinks/coffee``
9595

96-
The RoutingAutoBundle uses a URI schema definitions to define how routes are generated. A
96+
The RoutingAutoBundle uses a URI schema to define how routes are generated. A
9797
schema for the above URI would look like this (the bundle does not care about
9898
the host or protocol):
9999

@@ -105,7 +105,7 @@ You can see that ``my-forum`` is static (it will not change) but that
105105

106106
The value for tokens are provided by *token providers*.
107107

108-
The schema definitions, token providers, and other configurations (more on this later) are
108+
The schema, token providers, and other configurations (more on this later) are
109109
contained within ``routing_auto.format`` files (currently ``xml`` and ``yaml`` are
110110
supported). These files are contained either in your bundles
111111
``Resources/config`` directory or in a custom location specified in
@@ -120,9 +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:
124-
main:
125-
uri_schema: /my-forum/{category}/{title}
123+
uri_schema: /my-forum/{category}/{title}
126124
token_providers:
127125
category: [content_method, { method: getCategoryTitle, slugify: true }]
128126
title: [content_method, { method: getTitle }] # slugify is true by default
@@ -132,9 +130,7 @@ document could be defined as follows:
132130
<!-- src/Acme/ForumBundle/Resources/config/cmf_routing_auto.xml -->
133131
<?xml version="1.0" ?>
134132
<auto-mapping xmlns="http://cmf.symfony.com/schema/routing_auto">
135-
<mapping class="Acme\ForumBundle\Document\Topic">
136-
<definition name="main" uri-schema="/my-forum/{category}/{title}" />
137-
133+
<mapping class="Acme\ForumBundle\Document\Topic" uri-schema="/my-forum/{category}/{title}">
138134
<token-provider token="category" name="content_method">
139135
<option name="method">getCategoryName</option>
140136
<option name="slugify">true</option>
@@ -190,7 +186,6 @@ Read more
190186
* :doc:`token_providers`
191187
* :doc:`conflict_resolvers`
192188
* :doc:`defunct_route_handlers`
193-
* :doc:`definitions`
194189

195190
.. _`with composer`: http://getcomposer.org/
196191
.. _`symfony-cmf/routing-auto-bundle`: https:/packagist.org/packages/symfony-cmf/routing-auto-bundle

0 commit comments

Comments
 (0)