Commit ff90f07d authored by Avris's avatar Avris

Dispatcher update docs

parent 0306e355
Pipeline #11397932 passed with stage
in 3 seconds
...@@ -141,8 +141,7 @@ To define an event listener: ...@@ -141,8 +141,7 @@ To define an event listener:
To trigger it: To trigger it:
$d = $c->dispatcher; $c->dispatcher->event_name($c, 'and', 'other', 'params');
$d('event_name', [$c, 'and', 'other', 'params']);
Listeners are triggered in the order they were defined. The default listeners for the system events Listeners are triggered in the order they were defined. The default listeners for the system events
(`request`, `response` and `error`) go off **after** user defined ones. (`request`, `response` and `error`) go off **after** user defined ones.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment