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
@@ -55,15 +64,21 @@ private function handlePropertyAnnotations(ClassAnnotationScan $annotationScan,
55
64
$propertyAnnotation = $propertyAnnotations[0];
56
65
57
66
if (null === $propertyAnnotation->getServiceId() && null === $propertyAnnotation->getTagged()) {
58
-
thrownewInvalidServiceAnnotationException(\sprintf('Property %s::%s has @DependencyInjection without "serviceId" and "tagged" option. One of them must be defined'));
67
+
thrownewInvalidServiceAnnotationException(\sprintf('Property %s::%s has @DependencyInjection without "serviceId", "tagged" or "parameter" option. One of them must be defined', $property->getDeclaringClass()->getName(), $property->getName()));
59
68
}
60
69
61
70
62
71
if (null !== $propertyAnnotation->getServiceId()) {
@@ -34,45 +45,42 @@ public function process(ContainerBuilder $container)
34
45
thrownewInvalidServiceAnnotationException(\sprintf('Please define in your class "%s" in annotation "@ServiceTagArgument" the property "tag", since you have more than one "@ServiceTag" definitions in your class or parents of your class the system cannot autodetect the service tag for your arguments', $definition->getClass()));
thrownewInvalidServiceAnnotationException(\sprintf('Using annotation "%s" requires that the service definition has tags defined. Your service "%s" does not have any tag defined', ServiceTagArgument::class, $serviceId));
thrownewInvalidServiceAnnotationException(\sprintf('Attribute "%s" defined in class "%s" was already defined for tag "%s". Add options "ignoreWhenDefined" to false to overwrite attribute or set option "exceptionWhenDefined" to false to hide the exception and ignore the attribute', $attribute->getArgument(), $definition->getClass(), $attribute->getTag()));
0 commit comments