8000 Fixed a mistake in RegisterControllerArgumentLocatorsPass · symfony/symfony@c960bdb · GitHub
[go: up one dir, main page]

Skip to content

Commit c960bdb

Browse files
Fixed a mistake in RegisterControllerArgumentLocatorsPass
1 parent 7fa6256 commit c960bdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/HttpKernel/DependencyInjection/RegisterControllerArgumentLocatorsPass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ public function process(ContainerBuilder $container)
137137
} elseif (isset($bindings[$bindingName = $type.' $'.$p->name]) || isset($bindings[$bindingName = '$'.$p->name]) || isset($bindings[$bindingName = $type])) {
138138
$binding = $bindings[$bindingName];
139139

140-
list($bindingValue) = $binding->getValues();
140+
list($bindingValue, $bindingId, , $bindingType, $bindingFile) = $binding->getValues();
141+
$binding->setValues([$bindingValue, $bindingId, true, $bindingType, $bindingFile]);
141142

142143
if (!$bindingValue instanceof Reference) {
143144
$args[$p->name] = new Reference('.value.'.$container->hash($bindingValue));

0 commit comments

Comments
 (0)
0