Fix hardcoded listenerTag name in error message

This commit is contained in:
Mathieu Lemoine 2014-01-04 16:42:51 -05:00 committed by Fabien Potencier
parent b4a35ed119
commit 11c8b8d46c

View File

@ -70,7 +70,7 @@ class RegisterListenersPass implements CompilerPassInterface
$priority = isset($event['priority']) ? $event['priority'] : 0;
if (!isset($event['event'])) {
throw new \InvalidArgumentException(sprintf('Service "%s" must define the "event" attribute on "kernel.event_listener" tags.', $id));
throw new \InvalidArgumentException(sprintf('Service "%s" must define the "event" attribute on "%s" tags.', $id, $this->listenerTag));
}
if (!isset($event['method'])) {