@@ -117,14 +117,14 @@ manual steps:
117117 * ``app/Resources/<BundleName>/views/ `` -> ``templates/bundles/<BundleName>/ ``
118118 * rest of ``app/Resources/ `` files -> ``src/Resources/ ``
119119
120- #. Move the original PHP source code from ``src/AppBundle/* ``, except bundle
120+ #. Move the original PHP source code files from ``src/AppBundle/* ``, except bundle
121121 specific files (like ``AppBundle.php `` and ``DependencyInjection/ ``), to
122- ``src/ ``.
122+ ``src/ `` and update the namespace of each moved file to be ``App\... `` (advanced
123+ IDEs can do this automatically).
123124
124125 In addition to moving the files, update the ``autoload `` and ``autoload-dev ``
125126 values of the ``composer.json `` file as `shown in this example `_ to use
126- ``App\ `` and ``App\Tests\ `` as the application namespaces (advanced IDEs can
127- do this automatically).
127+ ``App\ `` and ``App\Tests\ `` as the application namespaces.
128128
129129 If you used multiple bundles to organize your code, you must reorganize your
130130 code into ``src/ ``. For example, if you had ``src/UserBundle/Controller/DefaultController.php ``
@@ -133,6 +133,8 @@ manual steps:
133133
134134#. Move the public assets, such as images or compiled CSS/JS files, from
135135 ``src/AppBundle/Resources/public/ `` to ``public/ `` (e.g. ``public/images/ ``).
136+
137+ #. Remove ``src/AppBundle/ ``.
136138
137139#. Move the source of the assets (e.g. the SCSS files) to ``assets/ `` and use
138140 :doc: `Webpack Encore </frontend >` to manage and compile them.
@@ -149,12 +151,6 @@ manual steps:
149151#. Update the ``bin/console `` script `copying Symfony's bin/console source `_
150152 and changing anything according to your original console script.
151153
152- #. Remove ``src/AppBundle/ ``.
153-
154- #. Move the original source code from ``src/{App,...}Bundle/ `` to ``src/ `` and
155- update the namespaces of every PHP file to be ``App\... `` (advanced IDEs can do
156- this automatically).
157-
158154#. Remove the ``bin/symfony_requirements `` script and if you need a replacement
159155 for it, use the new `Symfony Requirements Checker `_.
160156
0 commit comments