Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
ContainerFactory: use getter to get config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml committed Jun 10, 2016
1 parent 7833a39 commit 920860f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ final public static function create($new = FALSE)
private static function registerAdditionalExtension(\Nette\DI\Compiler $compiler, $name, $newExtension)
{
$extensions = [];
foreach (isset($compiler->config['extensions']) ? $compiler->config['extensions'] : [] as $extension) {
$config = $compiler->getConfig();
foreach (isset($config['extensions']) ? $config['extensions'] : [] as $extension) {
if (is_string($extension)) {
$extensions[] = $extension;
} elseif ($extension instanceof \Nette\DI\Statement) {
Expand Down

0 comments on commit 920860f

Please sign in to comment.