diff --git a/bin/developer b/bin/developer index c2fe0c8cbe..a31c266640 100755 --- a/bin/developer +++ b/bin/developer @@ -102,4 +102,4 @@ $cli['console']->addCommands(array( new ValidateSchemaCommand(), )); -exit($cli->runCLI()); +exit(is_int($cli->run()) ? : 1); diff --git a/lib/Alchemy/Phrasea/CLI.php b/lib/Alchemy/Phrasea/CLI.php index cf887d9e38..2a81f1356f 100644 --- a/lib/Alchemy/Phrasea/CLI.php +++ b/lib/Alchemy/Phrasea/CLI.php @@ -12,6 +12,7 @@ namespace Alchemy\Phrasea; use Alchemy\Phrasea\Command\CommandInterface; +use Alchemy\Phrasea\Exception\RuntimeException; use Symfony\Component\Console; use Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider; use Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider; @@ -77,6 +78,10 @@ class CLI extends Application public function run(\Symfony\Component\HttpFoundation\Request $request = null) { + if (null !== $request) { + throw new RuntimeException('Phraseanet Konsole can not run Http Requests.'); + } + $this->runCLI(); }