Skip to content

Commit 39968d2

Browse files
committed
minor symfony#17406 Events are dispatched, not thrown (curry684)
This PR was submitted for the 6.1 branch but it was merged into the 4.4 branch instead. Discussion ---------- Events are dispatched, not thrown <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 993f978 Events are dispatched, not thrown
2 parents ea2b3b0 + 993f978 commit 39968d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ Handling Exceptions: the ``kernel.exception`` Event
509509
:ref:`Kernel Events Information Table <component-http-kernel-event-table>`
510510

511511
If an exception is thrown at any point inside ``HttpKernel::handle()``, another
512-
event - ``kernel.exception`` is thrown. Internally, the body of the ``handle()``
512+
event - ``kernel.exception`` is dispatched. Internally, the body of the ``handle()``
513513
method is wrapped in a try-catch block. When any exception is thrown, the
514514
``kernel.exception`` event is dispatched so that your system can somehow respond
515515
to the exception.

0 commit comments

Comments
 (0)