Skip to content

Commit b45ad88

Browse files
committed
remove usage of already deleted Symfony\Component\EventDispatcher\Event
1 parent 5cfb816 commit b45ad88

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

DependencyInjection/RegisterListenersPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
1818
use Symfony\Component\DependencyInjection\Reference;
19-
use Symfony\Component\EventDispatcher\Event as LegacyEvent;
2019
use Symfony\Component\EventDispatcher\EventDispatcher;
2120
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2221
use Symfony\Contracts\EventDispatcher\Event;
@@ -141,7 +140,6 @@ private function getEventFromTypeDeclaration(ContainerBuilder $container, string
141140
|| !($type = $m->getParameters()[0]->getType())
142141
|| $type->isBuiltin()
143142
|| Event::class === ($name = $type->getName())
144-
|| LegacyEvent::class === $name
145143
) {
146144
throw new InvalidArgumentException(sprintf('Service "%s" must define the "event" attribute on "%s" tags.', $id, $this->listenerTag));
147145
}

0 commit comments

Comments
 (0)