Skip to content

Commit 0b58449

Browse files
phansysjaviereguiluz
authored andcommitted
Add some missing items and hints about migrating from standard edition to Flex
1 parent 713ad5c commit 0b58449

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

setup/flex.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ manual steps:
228228
:doc:`autowiring feature </service_container/3.3-di-changes>` you can remove
229229
most of the service configuration.
230230

231+
.. note::
232+
233+
Make sure your previous configuration files don't have ``imports`` declarations
234+
pointing to same resources already loaded by ``Kernel::configureContainer()``
235+
or ``Kernel::configureRoutes()`` methods.
236+
231237
#. Move the rest of the ``app/`` contents as follows (and after that, remove the
232238
``app/`` directory):
233239

@@ -236,8 +242,9 @@ manual steps:
236242
* ``app/Resources/<BundleName>/views/`` -> ``templates/bundles/<BundleName>/``
237243
* rest of ``app/Resources/`` files -> ``src/Resources/``
238244

239-
#. Move the original PHP source code from ``src/AppBundle/*`` to ``src/``. In
240-
addition to moving the files, update the ``autoload`` and ``autoload-dev``
245+
#. Move the original PHP source code from ``src/AppBundle/*``, except bundle specific
246+
files (like ``AppBundle``, ``DependencyInjection\``), to ``src/``. Remove ``src/AppBundle/``.
247+
In addition to moving the files, update the ``autoload`` and ``autoload-dev``
241248
values of the ``composer.json`` file as `shown in this example`_ to use
242249
``App\`` and ``App\Tests\`` as the application namespaces (advanced IDEs can
243250
do this automatically).
@@ -261,6 +268,13 @@ manual steps:
261268
#. Update the ``bin/console`` script `copying Symfony's bin/console source`_
262269
and changing anything according to your original console script.
263270

271+
#. Remove ``bin/symfony_requirements`` script. If you need a replacement for the
272+
task performed by this script, use `Symfony Requirements Checker`_:
273+
274+
.. code-block:: terminal
275+
276+
$ composer require symfony/requirements-checker
277+
264278
.. _`Symfony Flex`: https://github.com/symfony/flex
265279
.. _`Symfony Installer`: https://github.com/symfony/symfony-installer
266280
.. _`Symfony Standard Edition`: https://github.com/symfony/symfony-standard
@@ -272,3 +286,4 @@ manual steps:
272286
.. _`shown in this example of the skeleton-project`: https://github.com/symfony/skeleton/blob/8e33fe617629f283a12bbe0a6578bd6e6af417af/composer.json#L44-L46
273287
.. _`copying Symfony's index.php source`: https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/3.3/public/index.php
274288
.. _`copying Symfony's bin/console source`: https://github.com/symfony/recipes/blob/master/symfony/console/3.3/bin/console
289+
.. _`Symfony Requirements Checker`: https://github.com/symfony/requirements-checker

0 commit comments

Comments
 (0)