Skip to content

Commit

Permalink
ContainerBuilder: used real container's typehint in generated factories
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 10, 2015
1 parent 3f9490a commit c0cf062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ private function generateService($name)
$factoryClass->addMethod('__construct')
->addBody('$this->container = $container;')
->addParameter('container')
->setTypeHint('Nette\DI\Container');
->setTypeHint($this->generatedClasses[0]->name);

$factoryClass->addMethod($def->implementType)
->setParameters($this->convertParameters($def->parameters))
Expand Down

0 comments on commit c0cf062

Please sign in to comment.