Skip to content

Commit

Permalink
PhpGenerator: removed constructor creating
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 28, 2023
1 parent 8dc3ecd commit cc1ca86
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/DI/PhpGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ public function generate(string $className): Php\ClassType
$this->className = $className;
$class = new Php\ClassType($this->className);
$class->setExtends(Container::class);
$class->addMethod('__construct')
->addBody('parent::__construct($params);')
->addParameter('params', [])
->setType('array');

foreach ($this->builder->exportMeta() as $key => $value) {
$class->addProperty($key)
Expand Down

0 comments on commit cc1ca86

Please sign in to comment.