Skip to content

Commit 207605b

Browse files
committed
minor #18635 [DependencyInjection] Update kernel.reset explanation (alamirault)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [DependencyInjection] Update kernel.reset explanation Try to fix #16806 Change was done in this PR symfony/symfony#24709 I'm open for better wording 😄 Commits ------- a8803e2 [DependencyInjection] Update kernel.reset explanation
2 parents 68400e1 + a8803e2 commit 207605b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/dic_tags.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -711,10 +711,10 @@ kernel.reset
711711

712712
**Purpose**: Clean up services between requests
713713

714-
During the ``kernel.terminate`` event, Symfony looks for any service tagged
715-
with the ``kernel.reset`` tag to reinitialize their state. This is done by
716-
calling to the method whose name is configured in the ``method`` argument of
717-
the tag.
714+
In all main requests (not :ref:`sub-requests <http-kernel-sub-requests>`) except
715+
the first one, Symfony looks for any service tagged with the ``kernel.reset`` tag
716+
to reinitialize their state. This is done by calling to the method whose name is
717+
configured in the ``method`` argument of the tag.
718718

719719
This is mostly useful when running your projects in application servers that
720720
reuse the Symfony application between requests to improve performance. This tag

0 commit comments

Comments
 (0)