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
@@ -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));
* @expectedExceptionMEssage Unable to autowire argument of type "Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface" for the service "a". Multiple services exist for this interface (autowired.Symfony\Component\DependencyInjection\Tests\Compiler\CollisionA, autowired.Symfony\Component\DependencyInjection\Tests\Compiler\CollisionB).
669
+
* @expectedExceptionMEssage Unable to autowire argument of type "Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface" for the service "a". Multiple services exist for this interface (Symfony\Component\DependencyInjection\Tests\Compiler\CollisionA, Symfony\Component\DependencyInjection\Tests\Compiler\CollisionB).
0 commit comments