You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidArgumentException(sprintf('None of the "%s" or "__invoke" methods exist for the service "%s". Please define the "method" attribute on "kernel.event_listener" tags.', $event['method'], $id));
94
+
thrownewInvalidArgumentException(\sprintf('None of the "%s" or "__invoke" methods exist for the service "%s". Please define the "method" attribute on "kernel.event_listener" tags.', $event['method'], $id));
95
95
}
96
96
97
97
$event['method'] = '__invoke';
@@ -126,10 +126,10 @@ public function process(ContainerBuilder $container)
126
126
$class = $def->getClass();
127
127
128
128
if (!$r = $container->getReflectionClass($class)) {
129
-
thrownewInvalidArgumentException(sprintf('Class "%s" used for service "%s" cannot be found.', $class, $id));
129
+
thrownewInvalidArgumentException(\sprintf('Class "%s" used for service "%s" cannot be found.', $class, $id));
130
130
}
131
131
if (!$r->isSubclassOf(EventSubscriberInterface::class)) {
132
-
thrownewInvalidArgumentException(sprintf('Service "%s" must implement interface "%s".', $id, EventSubscriberInterface::class));
132
+
thrownewInvalidArgumentException(\sprintf('Service "%s" must implement interface "%s".', $id, EventSubscriberInterface::class));
133
133
}
134
134
$class = $r->name;
135
135
@@ -181,7 +181,7 @@ private function getEventFromTypeDeclaration(ContainerBuilder $container, string
181
181
|| $type->isBuiltin()
182
182
|| Event::class === ($name = $type->getName())
183
183
) {
184
-
thrownewInvalidArgumentException(sprintf('Service "%s" must define the "event" attribute on "kernel.event_listener" tags.', $id));
184
+
thrownewInvalidArgumentException(\sprintf('Service "%s" must define the "event" attribute on "kernel.event_listener" tags.', $id));
0 commit comments