Skip to content

Commit

Permalink
remove usage of already deleted Symfony\Component\EventDispatcher\Event
Browse files Browse the repository at this point in the history
  • Loading branch information
W0rma committed Feb 22, 2020
1 parent 5cfb816 commit b45ad88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions DependencyInjection/RegisterListenersPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit b45ad88

Please sign in to comment.