Skip to content

Commit fdda76f

Browse files
committed
[FrameworkBundle] Document the resolve-env-vars option of lint:container command
1 parent 8019920 commit fdda76f

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)