@@ -228,6 +228,12 @@ manual steps:
228
228
:doc: `autowiring feature </service_container/3.3-di-changes >` you can remove
229
229
most of the service configuration.
230
230
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
+
231
237
#. Move the rest of the ``app/ `` contents as follows (and after that, remove the
232
238
``app/ `` directory):
233
239
@@ -236,8 +242,9 @@ manual steps:
236
242
* ``app/Resources/<BundleName>/views/ `` -> ``templates/bundles/<BundleName>/ ``
237
243
* rest of ``app/Resources/ `` files -> ``src/Resources/ ``
238
244
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 ``
241
248
values of the ``composer.json `` file as `shown in this example `_ to use
242
249
``App\ `` and ``App\Tests\ `` as the application namespaces (advanced IDEs can
243
250
do this automatically).
@@ -261,6 +268,13 @@ manual steps:
261
268
#. Update the ``bin/console `` script `copying Symfony's bin/console source `_
262
269
and changing anything according to your original console script.
263
270
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
+
264
278
.. _`Symfony Flex` : https://github.com/symfony/flex
265
279
.. _`Symfony Installer` : https://github.com/symfony/symfony-installer
266
280
.. _`Symfony Standard Edition` : https://github.com/symfony/symfony-standard
@@ -272,3 +286,4 @@ manual steps:
272
286
.. _`shown in this example of the skeleton-project` : https://github.com/symfony/skeleton/blob/8e33fe617629f283a12bbe0a6578bd6e6af417af/composer.json#L44-L46
273
287
.. _`copying Symfony's index.php source` : https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/3.3/public/index.php
274
288
.. _`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