mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Minor tweaks on CLI application
This commit is contained in:
@@ -102,4 +102,4 @@ $cli['console']->addCommands(array(
|
|||||||
new ValidateSchemaCommand(),
|
new ValidateSchemaCommand(),
|
||||||
));
|
));
|
||||||
|
|
||||||
exit($cli->runCLI());
|
exit(is_int($cli->run()) ? : 1);
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
namespace Alchemy\Phrasea;
|
namespace Alchemy\Phrasea;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\CommandInterface;
|
use Alchemy\Phrasea\Command\CommandInterface;
|
||||||
|
use Alchemy\Phrasea\Exception\RuntimeException;
|
||||||
use Symfony\Component\Console;
|
use Symfony\Component\Console;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider;
|
use Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider;
|
use Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider;
|
||||||
@@ -77,6 +78,10 @@ class CLI extends Application
|
|||||||
|
|
||||||
public function run(\Symfony\Component\HttpFoundation\Request $request = null)
|
public function run(\Symfony\Component\HttpFoundation\Request $request = null)
|
||||||
{
|
{
|
||||||
|
if (null !== $request) {
|
||||||
|
throw new RuntimeException('Phraseanet Konsole can not run Http Requests.');
|
||||||
|
}
|
||||||
|
|
||||||
$this->runCLI();
|
$this->runCLI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user