Skip to content

Commit

Permalink
Merge pull request #5 from jirinapravnik/master
Browse files Browse the repository at this point in the history
Fix setupRouter variable
  • Loading branch information
jsifalda committed Nov 17, 2013
2 parents 791915d + acf4f94 commit d278f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Flame/Modules/DI/ModulesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private function setupPresenterMapping(Nette\DI\ServiceDefinition &$presenterFac
private function setupRouter(Nette\DI\ServiceDefinition &$router, IRouterProvider &$extension)
{
$routes = $extension->getRoutesDefinition();
if(!is_array($router)) {
if(!is_array($routes)) {
throw new Nette\InvalidStateException('Routes definition must be in array.');
}

Expand Down

0 comments on commit d278f30

Please sign in to comment.