From 29b6dbd525897b5dd27f680feeb3f39ebbea3720 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Sun, 18 Dec 2022 20:53:17 +0100 Subject: [PATCH] Tell composer action is need to regenerate autoload --- components/runtime.rst | 3 +++ configuration/override_dir_structure.rst | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/runtime.rst b/components/runtime.rst index fac78dd82dd..7b187acaeee 100644 --- a/components/runtime.rst +++ b/components/runtime.rst @@ -329,6 +329,9 @@ You can also configure ``extra.runtime`` in ``composer.json``: } } +Then, update your Composer files (running ``composer dump-autoload``, for instance), +so that the ``vendor/autoload_runtime.php`` files gets regenerated with the new option. + The following options are supported by the ``SymfonyRuntime``: ``env`` (default: ``APP_ENV`` environment variable, or ``"dev"``) diff --git a/configuration/override_dir_structure.rst b/configuration/override_dir_structure.rst index 73f65c9171f..808fb6f923f 100644 --- a/configuration/override_dir_structure.rst +++ b/configuration/override_dir_structure.rst @@ -49,7 +49,7 @@ define the ``runtime.dotenv_path`` option in the ``composer.json`` file: } } -Then, update your Composer files (running ``composer update``, for instance), +Then, update your Composer files (running ``composer dump-autoload``, for instance), so that the ``vendor/autoload_runtime.php`` files gets regenerated with the new ``.env`` path.