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));
91
+
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));
92
92
}
93
93
94
94
$event['method'] = '__invoke';
@@ -123,10 +123,10 @@ public function process(ContainerBuilder $container): void
123
123
$class = $def->getClass();
124
124
125
125
if (!$r = $container->getReflectionClass($class)) {
126
-
thrownewInvalidArgumentException(sprintf('Class "%s" used for service "%s" cannot be found.', $class, $id));
126
+
thrownewInvalidArgumentException(\sprintf('Class "%s" used for service "%s" cannot be found.', $class, $id));
127
127
}
128
128
if (!$r->isSubclassOf(EventSubscriberInterface::class)) {
129
-
thrownewInvalidArgumentException(sprintf('Service "%s" must implement interface "%s".', $id, EventSubscriberInterface::class));
129
+
thrownewInvalidArgumentException(\sprintf('Service "%s" must implement interface "%s".', $id, EventSubscriberInterface::class));
130
130
}
131
131
$class = $r->name;
132
132
@@ -178,7 +178,7 @@ private function getEventFromTypeDeclaration(ContainerBuilder $container, string
178
178
|| $type->isBuiltin()
179
179
|| Event::class === ($name = $type->getName())
180
180
) {
181
-
thrownewInvalidArgumentException(sprintf('Service "%s" must define the "event" attribute on "kernel.event_listener" tags.', $id));
181
+
thrownewInvalidArgumentException(\sprintf('Service "%s" must define the "event" attribute on "kernel.event_listener" tags.', $id));
0 commit comments