From b45ad88b253c5a9702ce218e201d89c85d148cea Mon Sep 17 00:00:00 2001 From: Dieter Date: Sat, 22 Feb 2020 21:09:08 +0100 Subject: [PATCH] remove usage of already deleted Symfony\Component\EventDispatcher\Event --- DependencyInjection/RegisterListenersPass.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/DependencyInjection/RegisterListenersPass.php b/DependencyInjection/RegisterListenersPass.php index 7820d35c..2bbebb7d 100644 --- a/DependencyInjection/RegisterListenersPass.php +++ b/DependencyInjection/RegisterListenersPass.php @@ -16,7 +16,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Reference; -use Symfony\Component\EventDispatcher\Event as LegacyEvent; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Contracts\EventDispatcher\Event; @@ -141,7 +140,6 @@ private function getEventFromTypeDeclaration(ContainerBuilder $container, string || !($type = $m->getParameters()[0]->getType()) || $type->isBuiltin() || Event::class === ($name = $type->getName()) - || LegacyEvent::class === $name ) { throw new InvalidArgumentException(sprintf('Service "%s" must define the "event" attribute on "%s" tags.', $id, $this->listenerTag)); }