From 248aaea246f105d8cd93c6e998f61ec60e2f5659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Fri, 13 Sep 2013 17:26:55 +0200 Subject: [PATCH] Fixed compatibility with Nette after nette/nette@481878e0a --- src/Kdyby/Console/DI/ConsoleExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kdyby/Console/DI/ConsoleExtension.php b/src/Kdyby/Console/DI/ConsoleExtension.php index 175dcbd..5993305 100644 --- a/src/Kdyby/Console/DI/ConsoleExtension.php +++ b/src/Kdyby/Console/DI/ConsoleExtension.php @@ -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);