Skip to content

[DependencyInjection] Introduce build parameters #17810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,19 @@ Configuration parameters are very common in Symfony applications. Some packages
even define their own parameters (e.g. when installing the translation package,
a new ``locale`` parameter is added to the ``config/services.yaml`` file).

.. tip::

When working with :ref:`Compiler Passes </service_container/compiler_passes>`,
you have the possibility to declare parameters that will only be available
during the container compilation. These parameters will be automatically removed
from the container once its build is done. To declare parameters only
available at compile-time, pre-prend their name with a dot ``.`` (for example,
``.mailer.transport``).

.. versionadded:: 6.3

Parameters only available at compile time were introduced in Symfony 6.3.

.. seealso::

Later in this article you can read how to
Expand Down