From 3282128d695bf551b0adfab20c40bf57881c5a2d Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Mon, 1 Apr 2019 08:22:17 +0200 Subject: [PATCH] fix filepaths for code examples --- configuration/micro_kernel_trait.rst | 6 +++--- form/data_mappers.rst | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 34ff0aaa11d..54f3b4089ce 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -186,7 +186,7 @@ hold the kernel. Now it looks like this:: } // load the annotation routes - $routes->import(__DIR__.'/../src/App/Controller/', '/', 'annotation'); + $routes->import(__DIR__.'/../src/Controller/', '/', 'annotation'); } // optional, to use the standard Symfony cache directory @@ -253,10 +253,10 @@ because the configuration started to get bigger: ], ]); -This also loads annotation routes from an ``src/App/Controller/`` directory, which +This also loads annotation routes from an ``src/Controller/`` directory, which has one file in it:: - // src/App/Controller/MicroController.php + // src/Controller/MicroController.php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; diff --git a/form/data_mappers.rst b/form/data_mappers.rst index d851bad2364..0e97c9ef34b 100644 --- a/form/data_mappers.rst +++ b/form/data_mappers.rst @@ -33,7 +33,7 @@ Creating a Data Mapper Suppose that you want to save a set of colors to the database. For this, you're using an immutable color object:: - // src/App/Painting/Color.php + // src/AppBundle/Painting/Color.php namespace App\Painting; final class Color @@ -80,7 +80,7 @@ The red, green and blue form fields have to be mapped to the constructor arguments and the ``Color`` instance has to be mapped to red, green and blue form fields. Recognize a familiar pattern? It's time for a data mapper:: - // src/App/Form/DataMapper/ColorMapper.php + // src/AppBundle/Form/DataMapper/ColorMapper.php namespace App\Form\DataMapper; use App\Painting\Color; @@ -143,7 +143,7 @@ You're ready to use the data mapper for the ``ColorType`` form. Use the :method:`Symfony\\Component\\Form\\FormConfigBuilderInterface::setDataMapper` method to configure the data mapper:: - // src/App/Form/Type/ColorType.php + // src/AppBundle/Form/Type/ColorType.php namespace App\Form\Type; use App\Form\DataMapper\ColorMapper;