创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php namespace App\Support;
use Symfony\Component\EventDispatcher\EventDispatcher as BaseEventDispatcher;
use Symfony\Component\EventDispatcher\GenericEvent;
class EventDispatcher extends BaseEventDispatcher
{
protected function doDispatch($listeners, $eventName, GenericEvent $event)
{
foreach ($listeners as $listener) {
if ($event->isPropagationStopped()) {
break;
}
$arguments = \call_user_func($listener, $event->getArguments(), $eventName, $this);
$event->setArguments($arguments);
}
}
}