* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\console\command\config; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class delete extends command { /** * {@inheritdoc} */ protected function configure() { $this ->setName('config:delete') ->setDescription($this->user->lang('CLI_DESCRIPTION_DELETE_CONFIG')) ->addArgument( 'key', InputArgument::REQUIRED, $this->user->lang('CLI_CONFIG_OPTION_NAME') ) ; } /** * Executes the command config:delete. * * Removes a configuration option * * @param InputInterface $input An InputInterface instance * @param OutputInterface $output An OutputInterface instance * * @return null * @see \phpbb\config\config::delete() */ protected function execute(InputInterface $input, OutputInterface $output) { $key = $input->getArgument('key'); if (isset($this->config[$key])) { $this->config->delete($key); $output->writeln('' . $this->user->lang('CLI_CONFIG_DELETE_SUCCESS', $key) . ''); } else { $output->writeln('' . $this->user->lang('CLI_CONFIG_NOT_EXISTS', $key) . ''); } } } ga1'>distro/mga1 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/share/rpmsrate
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-02-25 12:30:27 +0000
committerFrancois Pons <fpons@mandriva.com>2003-02-25 12:30:27 +0000
commit7432447cae9ab6184490c6e84c5ea0f9884c25e3 (patch)
tree3b9173302276bcfa147b80a24fdd2c2bca0667b8 /perl-install/share/rpmsrate
parentdf2bcff6007dcc4ac619f0d37d34d024793ddac7 (diff)
downloaddrakx-7432447cae9ab6184490c6e84c5ea0f9884c25e3.tar
drakx-7432447cae9ab6184490c6e84c5ea0f9884c25e3.tar.gz
drakx-7432447cae9ab6184490c6e84c5ea0f9884c25e3.tar.bz2
drakx-7432447cae9ab6184490c6e84c5ea0f9884c25e3.tar.xz
drakx-7432447cae9ab6184490c6e84c5ea0f9884c25e3.zip
added dmidecode in bug report.
Diffstat (limited to 'perl-install/share/rpmsrate')
0 files changed, 0 insertions, 0 deletions