Skip to content

Commit 38e76bb

Browse files
committed
[#2405] Porting kernel.terminate changes into the 2.1 branch
1 parent f191cc4 commit 38e76bb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

book/internals.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,22 @@ The ``FrameworkBundle`` registers several listeners:
361361

362362
Read more on the :ref:`kernel.response event <component-http-kernel-kernel-response>`.
363363

364+
.. index::
365+
single: Event; kernel.terminate
366+
367+
``kernel.terminate`` Event
368+
..........................
369+
370+
.. versionadded:: 2.1
371+
The ``kernel.terminate`` event is new since Symfony 2.1.
372+
373+
The purpose of this event is to perform "heavier" tasks after the response
374+
was already served to the client.
375+
376+
.. seealso::
377+
378+
Read more on the :ref:`kernel.terminate event <component-http-kernel-kernel-terminate>`.
379+
364380
.. index::
365381
single: Event; kernel.exception
366382

components/http_kernel/introduction.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ method, which sends the headers and prints the ``Response`` content.
446446
serializes the current user's information into the
447447
session so that it can be reloaded on the next request.
448448

449+
.. _component-http-kernel-kernel-terminate:
450+
449451
8) The ``kernel.terminate`` event
450452
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
451453

0 commit comments

Comments
 (0)