Skip to content

Commit 2b8bf2a

Browse files
committed
minor #20236 [FrameworkBundle] Document the resolve-env-vars option of lint:container command (javiereguiluz)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [FrameworkBundle] Document the `resolve-env-vars` option of `lint:container` command Fixes #20223. Commits ------- fdda76f [FrameworkBundle] Document the `resolve-env-vars` option of `lint:container` command
2 parents 2f44290 + fdda76f commit 2b8bf2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

service_container.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,14 @@ application to production (e.g. in your continuous integration server):
10691069
10701070
$ php bin/console lint:container
10711071
1072+
# optionally, you can force the resolution of environment variables;
1073+
# the command will fail if any of those environment variables are missing
1074+
$ php bin/console lint:container --resolve-env-vars
1075+
1076+
.. versionadded:: 7.2
1077+
1078+
The ``--resolve-env-vars`` option was introduced in Symfony 7.2.
1079+
10721080
Performing those checks whenever the container is compiled can hurt performance.
10731081
That's why they are implemented in :doc:`compiler passes </service_container/compiler_passes>`
10741082
called ``CheckTypeDeclarationsPass`` and ``CheckAliasValidityPass``, which are

0 commit comments

Comments
 (0)