mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Force plugin configuration in configuration
This commit is contained in:
@@ -24,8 +24,7 @@ class RemovePlugin extends AbstractPluginCommand
|
||||
|
||||
$this
|
||||
->setDescription('Removes a plugin given its name')
|
||||
->addArgument('name', InputArgument::REQUIRED, 'The name of the plugin')
|
||||
->addOption('keep-config', 'k', InputOption::VALUE_NONE, 'Use this flag to keep configuration');
|
||||
->addArgument('name', InputArgument::REQUIRED, 'The name of the plugin');
|
||||
}
|
||||
|
||||
protected function doExecutePluginAction(InputInterface $input, OutputInterface $output)
|
||||
@@ -50,11 +49,7 @@ class RemovePlugin extends AbstractPluginCommand
|
||||
|
||||
$this->updateConfigFiles($input, $output);
|
||||
|
||||
if (!$input->getOption('keep-config')) {
|
||||
$conf = $this->container['phraseanet.configuration']->getConfig();
|
||||
unset($conf['plugins'][$name]);
|
||||
$this->container['phraseanet.configuration']->setConfig($conf);
|
||||
}
|
||||
$this->container['conf']->remove(['plugins', $name]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user