mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Add command to console
This commit is contained in:
@@ -20,6 +20,7 @@ use Alchemy\Phrasea\Core\Version;
|
||||
use Alchemy\Phrasea\Command\BuildMissingSubdefs;
|
||||
use Alchemy\Phrasea\Command\CreateCollection;
|
||||
use Alchemy\Phrasea\Command\MailTest;
|
||||
use Alchemy\Phrasea\Command\Compile\Configuration;
|
||||
use Alchemy\Phrasea\Command\RecordAdd;
|
||||
use Alchemy\Phrasea\Command\RescanTechnicalDatas;
|
||||
use Alchemy\Phrasea\Command\UpgradeDBDatas;
|
||||
@@ -92,6 +93,7 @@ try {
|
||||
|
||||
$app->command(new AddPlugin());
|
||||
$app->command(new RemovePlugin());
|
||||
$app->command(new Configuration());
|
||||
|
||||
$result_code = is_int($app->run()) ? : 1;
|
||||
} catch (\Exception $e) {
|
||||
|
@@ -20,11 +20,13 @@ class Configuration extends Command
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('compile:configuration');
|
||||
$this->setDescription('Compile configuration');
|
||||
}
|
||||
|
||||
protected function doExecute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$this->container['phraseanet.configuration']->compileAndWrite();
|
||||
$output->writeln("Confguration compiled.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user