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
-------
dedbc4d814
remove usage of already deleted Symfony\Component\EventDispatcher\Event
This commit is contained in:
commit
de15900c38
|
@ -16,7 +16,6 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
|||
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 @@ class RegisterListenersPass implements CompilerPassInterface
|
|||
|| !($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));
|
||||
}
|
||||
|
|
Reference in New Issue