@@ -117,14 +117,14 @@ manual steps:
117
117
* ``app/Resources/<BundleName>/views/ `` -> ``templates/bundles/<BundleName>/ ``
118
118
* rest of ``app/Resources/ `` files -> ``src/Resources/ ``
119
119
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
121
121
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).
123
124
124
125
In addition to moving the files, update the ``autoload `` and ``autoload-dev ``
125
126
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.
128
128
129
129
If you used multiple bundles to organize your code, you must reorganize your
130
130
code into ``src/ ``. For example, if you had ``src/UserBundle/Controller/DefaultController.php ``
@@ -133,6 +133,8 @@ manual steps:
133
133
134
134
#. Move the public assets, such as images or compiled CSS/JS files, from
135
135
``src/AppBundle/Resources/public/ `` to ``public/ `` (e.g. ``public/images/ ``).
136
+
137
+ #. Remove ``src/AppBundle/ ``.
136
138
137
139
#. Move the source of the assets (e.g. the SCSS files) to ``assets/ `` and use
138
140
:doc: `Webpack Encore </frontend >` to manage and compile them.
@@ -149,12 +151,6 @@ manual steps:
149
151
#. Update the ``bin/console `` script `copying Symfony's bin/console source `_
150
152
and changing anything according to your original console script.
151
153
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
-
158
154
#. Remove the ``bin/symfony_requirements `` script and if you need a replacement
159
155
for it, use the new `Symfony Requirements Checker `_.
160
156
0 commit comments