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
$message = sprintf('Service "%s" does not exist. This type could be aliased to any of these existing services: "%s"', $type, implode('", "', $this->ambiguousServiceTypes[$type]));
511
+
} elseif (isset($this->types[$type])) {
512
+
$message = sprintf('Service "%s" does not exist. This type could be aliased to the existing "%s" service', $type, $this->types[$type]);
@@ -666,6 +666,23 @@ private function loadFromExtensions(\DOMDocument $xml)
666
666
}
667
667
}
668
668
669
+
privatefunctiongetAutowired($value, $file)
670
+
{
671
+
if (is_bool($value = XmlUtils::phpize($value))) {
672
+
return$value;
673
+
}
674
+
675
+
if ('by-type' === $value) {
676
+
return Definition::AUTOWIRE_BY_TYPE;
677
+
}
678
+
679
+
if ('by-id' === $value) {
680
+
return Definition::AUTOWIRE_BY_ID;
681
+
}
682
+
683
+
thrownewInvalidArgumentException(sprintf('Invalid autowire attribute: "by-type", "by-id", "true" or "false" expected, "%s" given in "%s".', $value, $file));
0 commit comments