8000 [DependencyInjection] Update kernel.reset explanation · symfony/symfony-docs@a8803e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8803e2

Browse files
alamiraultjaviereguiluz
authored andcommitted
[DependencyInjection] Update kernel.reset explanation
1 parent 2415e00 commit a8803e2

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)
0