File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -1061,20 +1061,24 @@ to them.
10611061Linting Service Definitions
10621062---------------------------
10631063
1064- The ``lint:container `` command checks that the arguments injected into services
1065- match their type declarations . It's useful to run it before deploying your
1064+ The ``lint:container `` command performs additional checks to ensure the container
1065+ is properly configured . It is useful to run this command before deploying your
10661066application to production (e.g. in your continuous integration server):
10671067
10681068.. code-block :: terminal
10691069
10701070 $ php bin/console lint:container
10711071
1072- Checking the types of all service arguments whenever the container is compiled
1073- can hurt performance. That's why this type checking is implemented in a
1074- :doc: `compiler pass </service_container/compiler_passes >` called
1075- ``CheckTypeDeclarationsPass `` which is disabled by default and enabled only when
1076- executing the ``lint:container `` command. If you don't mind the performance
1077- loss, enable the compiler pass in your application.
1072+ Performing those checks whenever the container is compiled can hurt performance.
1073+ That's why they are implemented in :doc: `compiler passes </service_container/compiler_passes >`
1074+ called ``CheckTypeDeclarationsPass `` and ``CheckAliasValidityPass ``, which are
1075+ disabled by default and enabled only when executing the ``lint:container `` command.
1076+ If you don't mind the performance loss, you can enable these compiler passes in
1077+ your application.
1078+
1079+ .. versionadded :: 7.1
1080+
1081+ The ``CheckAliasValidityPass `` compiler pass was introduced in Symfony 7.1.
10781082
10791083.. _container-public :
10801084
You can’t perform that action at this time.
0 commit comments