Skip to content

Commit

Permalink
Fixed compatibility with Nette after nette/nette@481878e0a
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Sep 13, 2013
1 parent 57ad530 commit 248aaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kdyby/Console/DI/ConsoleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function loadConfiguration()
}
$builder->getDefinition('nette.httpRequestFactory')
->setClass('Kdyby\Console\HttpRequestFactory')
->addSetup('setFakeRequestUrl', $config['url']);
->addSetup('setFakeRequestUrl', array($config['url']));

} elseif (PHP_SAPI === 'cli' && empty($config['url'])) {
trigger_error("You should probably specify an url key in {$this->name} extension, otherwise you will be unable to generate urls.", E_USER_NOTICE);
Expand Down

0 comments on commit 248aaea

Please sign in to comment.