Skip to content

Commit fe94f5d

Browse files
committed
missing AttributeBasedAutowiring patch
1 parent f885a5b commit fe94f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Definition/Source/AttributeBasedAutowiring.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private function readProperty(ReflectionProperty $property, ObjectDefinition $de
177177
}
178178

179179
$definition->addPropertyInjection(
180-
new PropertyInjection($property->getName(), new Reference($entryName), $classname)
180+
new PropertyInjection($property->getName(), new Reference($entryName, $classname), $classname)
181181
);
182182
}
183183

@@ -312,7 +312,7 @@ private function readConstructor(ReflectionClass $class, ObjectDefinition $defin
312312
$entryName = $this->getMethodParameter($index, $parameter, []);
313313

314314
if ($entryName !== null) {
315-
$parameters[$index] = new Reference($entryName);
315+
$parameters[$index] = new Reference($entryName, $class->getName());
316316
}
317317
}
318318

0 commit comments

Comments
 (0)