Skip to content

Commit 08b1527

Browse files
committed
Add filename comments to code blocks
1 parent fe1a574 commit 08b1527

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cookbook/routing/custom_route_loader.rst

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ The sample loader below supports loading routing resources with a type of
7272
``extra``. The type ``extra`` isn't important - you can just invent any resource
7373
type you want. The resource name itself is not actually used in the example::
7474

75+
// src/AppBundle/Routing/ExtraLoader.php
7576
namespace AppBundle\Routing;
7677

7778
use Symfony\Component\Config\Loader\Loader;
@@ -119,6 +120,7 @@ Make sure the controller you specify really exists. In this case you
119120
have to create an ``extraAction`` method in the ``ExtraController``
120121
of the ``AppBundle``::
121122

123+
// src/AppBundle/Controller/ExtraController.php
122124
namespace AppBundle\Controller;
123125

124126
use Symfony\Component\HttpFoundation\Response;
@@ -238,6 +240,7 @@ Whenever you want to load another resource - for instance a YAML routing
238240
configuration file - you can call the
239241
:method:`Symfony\\Component\\Config\\Loader\\Loader::import` method::
240242

243+
// src/AppBundle/Routing/AdvancedLoader.php
241244
namespace AppBundle\Routing;
242245

243246
use Symfony\Component\Config\Loader\Loader;

0 commit comments

Comments
 (0)