Skip to content

Commit

Permalink
Add filename comments to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaris committed Apr 29, 2015
1 parent fe1a574 commit 08b1527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookbook/routing/custom_route_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The sample loader below supports loading routing resources with a type of
``extra``. The type ``extra`` isn't important - you can just invent any resource
type you want. The resource name itself is not actually used in the example::

// src/AppBundle/Routing/ExtraLoader.php
namespace AppBundle\Routing;

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

// src/AppBundle/Controller/ExtraController.php
namespace AppBundle\Controller;

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

// src/AppBundle/Routing/AdvancedLoader.php
namespace AppBundle\Routing;

use Symfony\Component\Config\Loader\Loader;
Expand Down

0 comments on commit 08b1527

Please sign in to comment.