From 5dcc00e03413f05c1e7900090927bb7247cb0aac Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 6 Jul 2023 08:34:20 +0200 Subject: [PATCH] typo fix --- DependencyInjection/RegisterListenersPass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/RegisterListenersPass.php b/DependencyInjection/RegisterListenersPass.php index ed88839..5f44ff0 100644 --- a/DependencyInjection/RegisterListenersPass.php +++ b/DependencyInjection/RegisterListenersPass.php @@ -117,7 +117,7 @@ public function process(ContainerBuilder $container) if (null !== ($class = $container->getDefinition($id)->getClass()) && ($r = $container->getReflectionClass($class, false)) && !$r->hasMethod($event['method'])) { if (!$r->hasMethod('__invoke')) { - throw new InvalidArgumentException(sprintf('None of the "%s" or "__invoke" methods exist for the service "foo". Please define the "method" attribute on "%s" tags.', $event['method'], $id, $this->listenerTag)); + throw new InvalidArgumentException(sprintf('None of the "%s" or "__invoke" methods exist for the service "%s". Please define the "method" attribute on "%s" tags.', $event['method'], $id, $this->listenerTag)); } $event['method'] = '__invoke';