magento_find_event_dispatchers
Locate PHP files where a Magento event is dispatched via eventManager->dispatch(). Determines which class triggers the event.
Instructions
Find all PHP locations where a specific Magento event is dispatched via eventManager->dispatch(). Unlike magento_find_event_flow (which shows the full chain: dispatchers+observers+handlers), this tool focuses exclusively on finding WHERE an event is triggered — with exact grep matching, method context, and surrounding code. Use this to answer "does class X dispatch event Y?" or "who triggers this event?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eventName | Yes | Magento event name to find dispatchers for. Examples: "sales_order_place_after", "custom_discount_rule_validation_before", "checkout_cart_add_product_complete" |