Skip to content

Commit 6b30ba1

Browse files
committed
moving bootstrap.php to config
1 parent 4a747e8 commit 6b30ba1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

configuration/dot-env-changes.rst

+7-6
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ If you created your application after November 15th 2018, you don't need to make
4040
any changes! Otherwise, here is the list of changes you'll need to make - these
4141
changes can be made to any Symfony 3.4 or higher app:
4242

43-
#. Create a new `src/.bootstrap.php`_ file in your project. This file loads Composer's
44-
autoloader and loads all the ``.env`` files as needed.
43+
#. Create a new `config/bootstrap.php`_ file in your project. This file loads Composer's
44+
autoloader and loads all the ``.env`` files as needed (note: in an earlier recipe,
45+
this file was called ``src/.bootstrap.php``).
4546

46-
#. Update your `public/index.php`_ (`index.php diff`_) file to load the new ``src/.bootstrap.php``
47+
#. Update your `public/index.php`_ (`index.php diff`_) file to load the new ``config/bootstrap.php``
4748
file. If you've customized this file, make sure to keep those changes (but use
4849
the rest of the changes).
4950

50-
#. Update your `bin/console`_ (`bin/console diff`_) file to load the new ``src/.bootstrap.php`` file.
51+
#. Update your `bin/console`_ (`bin/console diff`_) file to load the new ``config/bootstrap.php`` file.
5152

5253
#. Update ``.gitignore``:
5354

@@ -78,10 +79,10 @@ changes can be made to any Symfony 3.4 or higher app:
7879
You can also update the `comment on the top of .env`_ to reflect the new changes.
7980

8081
#. If you're using PHPUnit, you will also need to `create a new .env.test`_ file
81-
and update your `phpunit.xml.dist file`_ so it loads the ``src/.bootstrap.php``
82+
and update your `phpunit.xml.dist file`_ so it loads the ``config/bootstrap.php``
8283
file.
8384

84-
.. _`src/.bootstrap.php`: https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/3.3/src/.bootstrap.php
85+
.. _`config/bootstrap.php`: https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/3.3/config/bootstrap.php
8586
.. _`public/index.php`: https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/3.3/public/index.php
8687
.. _`index.php diff`: https://github.com/symfony/recipes/compare/8a4e5555e30d5dff64275e2788a901f31a214e79...86e2b6795c455f026e5ab0cba2aff2c7a18511f7#diff-473fca613b5bda15d87731036cb31586
8788
.. _`bin/console`: https://github.com/symfony/recipes/blob/master/symfony/console/3.3/bin/console

0 commit comments

Comments
 (0)