Skip to content

Commit

Permalink
Config: moved check of unknown config sections after extension loadin…
Browse files Browse the repository at this point in the history
…g in Compiler
  • Loading branch information
vojtech-dobes authored and dg committed Jul 30, 2012
1 parent ddf13f8 commit 71e1d41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Nette/Config/Compiler.php
Expand Up @@ -113,14 +113,14 @@ public function processParameters()

public function processExtensions()
{
foreach ($this->extensions as $name => $extension) {
$extension->loadConfiguration();
}

if ($extra = array_diff_key($this->config, self::$reserved, $this->extensions)) {
$extra = implode("', '", array_keys($extra));
throw new Nette\InvalidStateException("Found sections '$extra' in configuration, but corresponding extensions are missing.");
}

foreach ($this->extensions as $name => $extension) {
$extension->loadConfiguration();
}
}


Expand Down

0 comments on commit 71e1d41

Please sign in to comment.