Skip to content

Commit

Permalink
minor symfony#19605 chore: replace word throw by dispatch for event (…
Browse files Browse the repository at this point in the history
…94noni)

This PR was merged into the 5.4 branch.

Discussion
----------

chore: replace word throw by dispatch for event

I think its better, as throw can sound exception related
wdyt?

Commits
-------

cf16892 chore: replace word throw by dispatch for event
  • Loading branch information
javiereguiluz committed Feb 26, 2024
2 parents a7d98b0 + cf16892 commit 7350181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ truly extensible.
Take an example from :doc:`the HttpKernel component </components/http_kernel>`.
Once a ``Response`` object has been created, it may be useful to allow other
elements in the system to modify it (e.g. add some cache headers) before
it's actually used. To make this possible, the Symfony kernel throws an
it's actually used. To make this possible, the Symfony kernel dispatches an
event - ``kernel.response``. Here's how it works:

* A *listener* (PHP object) tells a central *dispatcher* object that it
Expand Down

0 comments on commit 7350181

Please sign in to comment.