Skip to content

Commit 66346ea

Browse files
committed
Make url parameter optional
1 parent af2bf68 commit 66346ea

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: src/Kdyby/Console/DI/ConsoleExtension.php

-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ public function loadConfiguration()
8787
$builder->getDefinition('nette.httpRequestFactory')
8888
->setClass('Kdyby\Console\HttpRequestFactory')
8989
->addSetup('setFakeRequestUrl', array($config['url']));
90-
91-
} elseif (PHP_SAPI === 'cli' && empty($config['url'])) {
92-
trigger_error("You should probably specify an url key in {$this->name} extension, otherwise you will be unable to generate urls.", E_USER_NOTICE);
9390
}
9491

9592
$builder->addDefinition($this->prefix('dicHelper'))

0 commit comments

Comments
 (0)