Created
November 8, 2018 10:54
-
-
Save nicolas-grekas/d2612166b11e5cef6ef0f7adf334ae10 to your computer and use it in GitHub Desktop.
Autowiring aliases for named parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php | |
+++ b/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php | |
@@ -193,7 +193,7 @@ class AutowirePass extends AbstractRecursivePass | |
continue; | |
} | |
- $type = ProxyHelper::getTypeHint($reflectionMethod, $parameter, true); | |
+ $type = ltrim(ProxyHelper::getTypeHint($reflectionMethod, $parameter, false), '\\'); | |
if (!$type) { | |
if (isset($arguments[$index])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
string $toto: | |
class: string | |
factory: 'current' | |
arguments: [['HELLO']] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment