Skip to content

Commit b6d45c8

Browse files
committed
Merge pull request #17 from fprochazka/patch-1
Fixed reflection exception if CompilerExtension has no costructor
2 parents 3f00e6b + 96a183a commit b6d45c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bootstrap/Configurator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ protected function createContainerFactory()
220220
if (class_exists($class)) {
221221
$rc = new \ReflectionClass($class);
222222
$args = DI\Helpers::expand($args, $config['parameters'], TRUE);
223-
$compiler->addExtension($name, $rc->newInstanceArgs($args));
223+
$compiler->addExtension($name, $args ? $rc->newInstanceArgs($args) : $rc->newInstance());
224224
}
225225
}
226226
$factory->parentClass = $config['parameters']['container']['parent'];

0 commit comments

Comments
 (0)