Removed unnecessary getDefinition() call.

This commit is contained in:
Alexander M. Turek 2017-09-13 15:44:19 +02:00
parent 19e5ed1bcf
commit d1f7024e14

View File

@ -62,8 +62,6 @@ class RegisterListenersPass implements CompilerPassInterface
$definition = $container->findDefinition($this->dispatcherService);
foreach ($container->findTaggedServiceIds($this->listenerTag, true) as $id => $events) {
$def = $container->getDefinition($id);
foreach ($events as $event) {
$priority = isset($event['priority']) ? $event['priority'] : 0;