From 08b1527eea08d0b2ebcd81eacc50c6e5d659a956 Mon Sep 17 00:00:00 2001 From: Alexander Schwenn Date: Wed, 29 Apr 2015 20:52:48 +0200 Subject: [PATCH] Add filename comments to code blocks --- cookbook/routing/custom_route_loader.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbook/routing/custom_route_loader.rst b/cookbook/routing/custom_route_loader.rst index bff77ee78cf..046ea128409 100644 --- a/cookbook/routing/custom_route_loader.rst +++ b/cookbook/routing/custom_route_loader.rst @@ -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; @@ -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; @@ -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;