Skip to content

Commit 041dab1

Browse files
committed
minor #15096 Remove duplicate step in flex setup steps (matason)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead. Discussion ---------- Remove duplicate step in flex setup steps <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 6490e83 Remove duplicate step
2 parents 05c7f78 + 6490e83 commit 041dab1

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

setup/flex.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)