Skip to content

[DependencyInjection] Update kernel.reset explanation #18635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,10 @@ kernel.reset

**Purpose**: Clean up services between requests

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

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