Skip to content

Commit a5c70a8

Browse files
[DependencyInjection] Introduce build parameters
1 parent cb1c863 commit a5c70a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎configuration.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,19 @@ Configuration parameters are very common in Symfony applications. Some packages
376376
even define their own parameters (e.g. when installing the translation package,
377377
a new ``locale`` parameter is added to the ``config/services.yaml`` file).
378378

379+
.. tip::
380+
381+
When working with :ref:`Compiler Passes </service_container/compiler_passes>`,
382+
you have the possibility to declare parameters that will only be available
383+
during the container compilation. These parameters will be automatically removed
384+
from the container once its build is done. To declare parameters only
385+
available at compile-time, pre-prend their name with a dot ``.`` (for example,
386+
``.mailer.transport``).
387+
388+
.. versionadded:: 6.3
389+
390+
Parameters only available at compile time were introduced in Symfony 6.3.
391+
379392
.. seealso::
380393

381394
Later in this article you can read how to

0 commit comments

Comments
 (0)