Skip to content

fix filepaths for code examples #11255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions configuration/micro_kernel_trait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions form/data_mappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down