Skip to content

Commit fb3d69b

Browse files
committed
minor #17810 [DependencyInjection] Introduce build parameters (alexandre-daubois)
This PR was merged into the 6.3 branch. Discussion ---------- [DependencyInjection] Introduce build parameters Fixes #17505 Commits ------- a5c70a8 [DependencyInjection] Introduce build parameters
2 parents 3db20f8 + a5c70a8 commit fb3d69b

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
@@ -358,6 +358,19 @@ Configuration parameters are very common in Symfony applications. Some packages
358358
even define their own parameters (e.g. when installing the translation package,
359359
a new ``locale`` parameter is added to the ``config/services.yaml`` file).
360360

361+
.. tip::
362+
363+
When working with :ref:`Compiler Passes </service_container/compiler_passes>`,
364+
you have the possibility to declare parameters that will only be available
365+
during the container compilation. These parameters will be automatically removed
366+
from the container once its build is done. To declare parameters only
367+
available at compile-time, pre-prend their name with a dot ``.`` (for example,
368+
``.mailer.transport``).
369+
370+
.. versionadded:: 6.3
371+
372+
Parameters only available at compile time were introduced in Symfony 6.3.
373+
361374
.. seealso::
362375

363376
Later in this article you can read how to

0 commit comments

Comments
 (0)