|
|
|
@ -72,11 +72,9 @@ class Dispatcher
|
|
|
|
* Dispatches an event.
|
|
|
|
* Dispatches an event.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param string $name Event name.
|
|
|
|
* @param string $name Event name.
|
|
|
|
* @param array<int, mixed> $params Callback parameters.
|
|
|
|
* @param mixed[] $params Event callable parameters.
|
|
|
|
*
|
|
|
|
* @return mixed Output of event callable.
|
|
|
|
* @throws Exception If event name isn't found or if event throws an `Exception`.
|
|
|
|
* @throws Throwable If event name isn't found or if event throws an `Throwable`.
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return mixed Output of callback
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function run(string $name, array $params = [])
|
|
|
|
public function run(string $name, array $params = [])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|