Skip to content

Commit

Permalink
ContainerBuilder: split into ContainerBuilder and PhpGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 17, 2016
1 parent 1d6c547 commit aa65657
Show file tree
Hide file tree
Showing 4 changed files with 349 additions and 289 deletions.
3 changes: 2 additions & 1 deletion src/DI/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ public function generateCode()
$this->dependencies->add([(new \ReflectionClass($extension))->getFileName()]);
}

$classes = $this->builder->generateClasses($this->className);
$generator = new PhpGenerator($this->builder);
$classes = $generator->generate($this->className);
$classes[0]->addMethod('initialize');
$this->dependencies->add($this->builder->getDependencies());

Expand Down
Loading

0 comments on commit aa65657

Please sign in to comment.