Skip to content

Commit c5f05cb

Browse files
committed
minor #11255 fix filepaths for code examples (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- fix filepaths for code examples <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 3282128 fix filepaths for code examples
2 parents 5a575f6 + 3282128 commit c5f05cb

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
@@ -185,7 +185,7 @@ hold the kernel. Now it looks like this::
185185
}
186186

187187
// load the annotation routes
188-
$routes->import(__DIR__.'/../src/App/Controller/', '/', 'annotation');
188+
$routes->import(__DIR__.'/../src/Controller/', '/', 'annotation');
189189
}
190190

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

258-
// src/App/Controller/MicroController.php
258+
// src/Controller/MicroController.php
259259
namespace App\Controller;
260260

261261
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)