Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2a15ae

Browse files
committed
Minor tweaks
1 parent9d56329 commite2a15ae

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

‎service_container.rst‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,26 +1035,25 @@ to them.
10351035
Linting Service Definitions
10361036
---------------------------
10371037

1038-
The ``lint:container`` command performs some additional checks to make sure
1039-
the container is properly configured:
1040-
* ensures the arguments injected into services match their type declarations.
1041-
* ensures the interfaces configured as alias are resolving to a compatible
1042-
service.
1043-
It's useful to run it before deploying your application to production
1044-
(e.g. in your continuous integration server):
1038+
The ``lint:container`` command performs additional checks to ensure the container
1039+
is properly configured. It is useful to run this command before deploying your
1040+
application to production (e.g. in your continuous integration server):
10451041

10461042
..code-block::terminal
10471043
10481044
$ php bin/console lint:container
10491045
1050-
Doing those checks whenever the container is compiled
1051-
can hurt performance. That's why this is implemented in
1052-
:doc:`compiler passes</service_container/compiler_passes>` called
1053-
``CheckTypeDeclarationsPass`` and ``CheckAliasValidityPass`` which are disabled
1054-
by default and enabled only when executing the ``lint:container`` command.
1055-
If you don't mind the performance loss, enable these compiler passes in
1046+
Performing those checks whenever the container is compiled can hurt performance.
1047+
That's why they are implemented in:doc:`compiler passes</service_container/compiler_passes>`
1048+
called ``CheckTypeDeclarationsPass`` and ``CheckAliasValidityPass``, which are
1049+
disabled by default and enabled only when executing the ``lint:container`` command.
1050+
If you don't mind the performance loss, you can enable these compiler passes in
10561051
your application.
10571052

1053+
..versionadded::7.1
1054+
1055+
The ``CheckAliasValidityPass`` compiler pass was introduced in Symfony 7.1.
1056+
10581057
.. _container-public:
10591058

10601059
Public Versus Private Services

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp