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
thrownewInvalidServiceAnnotationException(\sprintf('Property %s::%s cannot be configured with @DependencyInjection cause it is not a public property', $property->getDeclaringClass()->getName(), $property->getName()));
49
+
}
50
+
51
+
if (\count($propertyAnnotations) > 1) {
52
+
thrownewInvalidServiceAnnotationException(\sprintf('Property %s::%s has more than one annotation of type @DependencyInjection which is not possible to inject multiple services to property', $property->getDeclaringClass()->getName(), $property->getName()));
53
+
}
54
+
55
+
$propertyAnnotation = $propertyAnnotations[0];
56
+
57
+
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'));
59
+
}
60
+
61
+
62
+
if (null !== $propertyAnnotation->getServiceId()) {
if (\count($targetless) > 0 && $method->getNumberOfParameters() > 1) {
87
+
thrownewInvalidServiceAnnotationException(\sprintf('Method %s::%s has a @DependencyInjection annotation without a target defined, this is only possible for methods with one parameter or properties', $method->getDeclaringClass()->getName(), $method->getName()));
0 commit comments