Skip to content

Commit cd824e0

Browse files
committed
[#2221] More tweaks to routing movement in standard distribution
1 parent 6ff4b1b commit cd824e0

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

cookbook/bundles/remove.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ that refers to the bundle.
4848
2.1 Remove bundle routing
4949
~~~~~~~~~~~~~~~~~~~~~~~~~
5050

51-
The routing for the AcmeDemoBundle can be found in
52-
``app/config/routing_dev.yml``. The route is ``_acme_demo``, remove this entry.
51+
The routing for the AcmeDemoBundle can be found in ``app/config/routing_dev.yml``.
52+
Remove the ``_acme_demo`` entry at the bottom of this file.
5353

5454
2.2 Remove bundle configuration
5555
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cookbook/routing/custom_route_loader.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ and therefore have two important methods:
3535
:method:`Symfony\\Component\\Config\\Loader\\LoaderInterface::supports`
3636
and :method:`Symfony\\Component\\Config\\Loader\\LoaderInterface::load`.
3737

38-
Take these lines from ``routing.yml``:
38+
Take these lines from the ``routing.yml`` in the AcmeDemoBundle of the Standard
39+
Edition:
3940

4041
.. code-block:: yaml
4142
43+
# src/Acme/DemoBundle/Resources/config/routing.yml
4244
_demo:
4345
resource: "@AcmeDemoBundle/Controller/DemoController.php"
4446
type: annotation

quick_tour/the_big_picture.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,22 @@ requested URL against some configured paths. By default, these paths
201201
file. When you're in the ``dev`` :ref:`environment<quick-tour-big-picture-environments>` -
202202
indicated by the app_**dev**.php front controller - the ``app/config/routing_dev.yml``
203203
configuration file is also loaded. In the Standard Edition, the routes to
204-
these "demo" pages are placed in that file:
204+
these "demo" pages are imported from this file:
205205

206206
.. code-block:: yaml
207207
208208
# app/config/routing_dev.yml
209+
# ...
210+
211+
# AcmeDemoBundle routes (to be removed)
212+
_acme_demo:
213+
resource: "@AcmeDemoBundle/Resources/config/routing.yml"
214+
215+
This imports a ``routing.yml`` file that lives inside the AcmeDemoBundle:
216+
217+
.. code-block:: yaml
218+
219+
# src/Acme/DemoBundle/Resources/config/routing.yml
209220
_welcome:
210221
path: /
211222
defaults: { _controller: AcmeDemoBundle:Welcome:index }
@@ -318,7 +329,8 @@ key:
318329

319330
.. code-block:: yaml
320331
321-
# app/config/routing_dev.yml
332+
# src/Acme/DemoBundle/Resources/config/routing.yml
333+
# ...
322334
_demo:
323335
resource: "@AcmeDemoBundle/Controller/DemoController.php"
324336
type: annotation

0 commit comments

Comments
 (0)