Skip to content

Commit b604dc1

Browse files
committed
minor #17588 Tell composer action is need to regenerate autoload (alamirault)
This PR was submitted for the 6.2 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- Tell composer action is need to regenerate autoload Lost some time to understand why editing composer.json extra does not affect `autoload_runtime` https://symfony.com/doc/current/configuration/override_dir_structure.html#override-the-environment-dotenv-files-directory has this sentence I added this sentence to https://symfony.com/doc/current/components/runtime.html#using-options Commits ------- 29b6dbd Tell composer action is need to regenerate autoload
2 parents 9664bf2 + 29b6dbd commit b604dc1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/runtime.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ You can also configure ``extra.runtime`` in ``composer.json``:
329329
}
330330
}
331331
332+
Then, update your Composer files (running ``composer dump-autoload``, for instance),
333+
so that the ``vendor/autoload_runtime.php`` files gets regenerated with the new option.
334+
332335
The following options are supported by the ``SymfonyRuntime``:
333336

334337
``env`` (default: ``APP_ENV`` environment variable, or ``"dev"``)

configuration/override_dir_structure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ define the ``runtime.dotenv_path`` option in the ``composer.json`` file:
4949
}
5050
}
5151
52-
Then, update your Composer files (running ``composer update``, for instance),
52+
Then, update your Composer files (running ``composer dump-autoload``, for instance),
5353
so that the ``vendor/autoload_runtime.php`` files gets regenerated with the new
5454
``.env`` path.
5555

0 commit comments

Comments
 (0)