Skip to content

Commit

Permalink
Fix ArrayDefinition and Factory (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiiliveext committed Apr 15, 2021
1 parent b136513 commit 596b28d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Container.php
Expand Up @@ -292,7 +292,7 @@ private function buildInternal(string $id)
return $this->buildPrimitive($id);
}
$this->processDefinition($this->definitions[$id]);
$definition = Normalizer::normalize($this->definitions[$id], $id, [], self::ALLOWED_META);
$definition = Normalizer::normalize($this->definitions[$id], $id, [], false);

return $definition->resolve($this->rootContainer ?? $this);
}
Expand All @@ -308,7 +308,7 @@ private function buildInternal(string $id)
private function buildPrimitive(string $class)
{
if (class_exists($class)) {
$definition = new ArrayDefinition([ArrayDefinition::CLASS_NAME => $class]);
$definition = new ArrayDefinition([ArrayDefinition::CLASS_NAME => $class], false);

return $definition->resolve($this->rootContainer ?? $this);
}
Expand Down

0 comments on commit 596b28d

Please sign in to comment.