mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15389] Allow arrays in event dispatcher
PHPBB3-15389
This commit is contained in:
parent
fc3d3a83db
commit
f788b7384b
1 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,12 @@ class dispatcher extends ContainerAwareEventDispatcher implements dispatcher_int
|
|||
return $event;
|
||||
}
|
||||
|
||||
return parent::dispatch($eventName, $event);
|
||||
foreach ((array) $eventName as $name)
|
||||
{
|
||||
$event = parent::dispatch($name, $event);
|
||||
}
|
||||
|
||||
return $event;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue