| @@ 12-27 (lines=16) @@ | ||
| 9 | ||
| 10 | class DeleteCommand extends AbstractConfigCommand |
|
| 11 | { |
|
| 12 | protected function configure() |
|
| 13 | { |
|
| 14 | $this |
|
| 15 | ->setName('config:delete') |
|
| 16 | ->setDescription('Deletes a store config item') |
|
| 17 | ->addArgument('path', InputArgument::REQUIRED, 'The config path') |
|
| 18 | ->addOption( |
|
| 19 | 'scope', |
|
| 20 | null, |
|
| 21 | InputOption::VALUE_OPTIONAL, |
|
| 22 | 'The config value\'s scope (default, websites, stores)', |
|
| 23 | 'default' |
|
| 24 | ) |
|
| 25 | ->addOption('scope-id', null, InputOption::VALUE_OPTIONAL, 'The config value\'s scope ID', '0') |
|
| 26 | ->addOption('all', null, InputOption::VALUE_NONE, 'Delete all entries by path') |
|
| 27 | ; |
|
| 28 | ||
| 29 | $help = <<<HELP |
|
| 30 | To delete all entries if a path you can set the option --all. |
|
| @@ 12-30 (lines=19) @@ | ||
| 9 | ||
| 10 | class SetCommand extends AbstractConfigCommand |
|
| 11 | { |
|
| 12 | protected function configure() |
|
| 13 | { |
|
| 14 | $this |
|
| 15 | ->setName('config:set') |
|
| 16 | ->setDescription('Set a core config item') |
|
| 17 | ->addArgument('path', InputArgument::REQUIRED, 'The config path') |
|
| 18 | ->addArgument('value', InputArgument::REQUIRED, 'The config value') |
|
| 19 | ->addOption( |
|
| 20 | 'scope', |
|
| 21 | null, |
|
| 22 | InputOption::VALUE_OPTIONAL, |
|
| 23 | 'The config value\'s scope (default, websites, stores)', |
|
| 24 | 'default' |
|
| 25 | ) |
|
| 26 | ->addOption('scope-id', null, InputOption::VALUE_OPTIONAL, 'The config value\'s scope ID', '0') |
|
| 27 | ->addOption( |
|
| 28 | 'encrypt', |
|
| 29 | null, |
|
| 30 | InputOption::VALUE_NONE, |
|
| 31 | 'The config value should be encrypted using local.xml\'s crypt key' |
|
| 32 | ) |
|
| 33 | ; |
|