变更
This commit is contained in:
@@ -38,6 +38,9 @@ class EventDispatch extends Component implements EventDispatcherInterface
|
|||||||
{
|
{
|
||||||
/** @var \SplPriorityQueue $lists */
|
/** @var \SplPriorityQueue $lists */
|
||||||
$lists = $this->eventProvider->getListenersForEvent($event);
|
$lists = $this->eventProvider->getListenersForEvent($event);
|
||||||
|
if (!$lists->valid()) {
|
||||||
|
return $event;
|
||||||
|
}
|
||||||
$lists->top();
|
$lists->top();
|
||||||
while ($lists->valid()) {
|
while ($lists->valid()) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user