Skip to content

Commit 3282128

Browse files
committed
fix filepaths for code examples
1 parent b8f07c7 commit 3282128

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ hold the kernel. Now it looks like this::
186186
}
187187

188188
// load the annotation routes
189-
$routes->import(__DIR__.'/../src/App/Controller/', '/', 'annotation');
189+
$routes->import(__DIR__.'/../src/Controller/', '/', 'annotation');
190190
}
191191

192192
// optional, to use the standard Symfony cache directory
@@ -253,10 +253,10 @@ because the configuration started to get bigger:
253253
],
254254
]);
255255
256-
This also loads annotation routes from an ``src/App/Controller/`` directory, which
256+
This also loads annotation routes from an ``src/Controller/`` directory, which
257257
has one file in it::
258258

259-
// src/App/Controller/MicroController.php
259+
// src/Controller/MicroController.php
260260
namespace App\Controller;
261261

262262
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

form/data_mappers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Creating a Data Mapper
3333
Suppose that you want to save a set of colors to the database. For this, you're
3434
using an immutable color object::
3535

36-
// src/App/Painting/Color.php
36+
// src/AppBundle/Painting/Color.php
3737
namespace App\Painting;
3838

3939
final class Color
@@ -80,7 +80,7 @@ The red, green and blue form fields have to be mapped to the constructor
8080
arguments and the ``Color`` instance has to be mapped to red, green and blue
8181
form fields. Recognize a familiar pattern? It's time for a data mapper::
8282

83-
// src/App/Form/DataMapper/ColorMapper.php
83+
// src/AppBundle/Form/DataMapper/ColorMapper.php
8484
namespace App\Form\DataMapper;
8585

8686
use App\Painting\Color;
@@ -143,7 +143,7 @@ You're ready to use the data mapper for the ``ColorType`` form. Use the
143143
:method:`Symfony\\Component\\Form\\FormConfigBuilderInterface::setDataMapper`
144144
method to configure the data mapper::
145145

146-
// src/App/Form/Type/ColorType.php
146+
// src/AppBundle/Form/Type/ColorType.php
147147
namespace App\Form\Type;
148148

149149
use App\Form\DataMapper\ColorMapper;

0 commit comments

Comments
 (0)