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.
1061
1061
Linting Service Definitions
1062
1062
---------------------------
1063
1063
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
1066
1066
application to production (e.g. in your continuous integration server):
1067
1067
1068
1068
.. code-block :: terminal
1069
1069
1070
1070
$ php bin/console lint:container
1071
1071
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.
1078
1082
1079
1083
.. _container-public :
1080
1084
You can’t perform that action at this time.
0 commit comments