8000 minor #35829 Remove usage of already deleted Symfony\Component\EventD… · symfony/symfony@de15900 · GitHub
[go: up one dir, main page]

Skip to content

Commit de15900

Browse files
minor #35829 Remove usage of already deleted Symfony\Component\EventDispatcher\Event (W0rma)
This PR was merged into the 5.0 branch. Discussion ---------- Remove usage of already deleted Symfony\Component\EventDispatcher\Event | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35823 | License | MIT | Doc PR | Remove usage of already deleted class `Symfony\Component\EventDispatcher\Event` Commits ------- dedbc4d remove usage of already deleted Symfony\Component\EventDispatcher\Event
2 parents 03f525a + dedbc4d commit de15900

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Symfony/Component/EventDispatcher/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)
0