Skip to content

Commit

Permalink
Fixed a mistake in RegisterControllerArgumentLocatorsPass
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslaw-bogusz committed Apr 6, 2019
1 parent 7fa6256 commit c960bdb
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -137,7 +137,8 @@ public function process(ContainerBuilder $container)
} elseif (isset($bindings[$bindingName = $type.' $'.$p->name]) || isset($bindings[$bindingName = '$'.$p->name]) || isset($bindings[$bindingName = $type])) {
$binding = $bindings[$bindingName];

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

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

0 comments on commit c960bdb

Please sign in to comment.