* @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) . '');
}
}
}
k,{BUu=f/RP$|ݦzf +5.ٓl6`giѢi*nԅ@IT6W}K>oixL|G'7\R}c-r;#8hTcblpȉt3Z7bgCd1K>0:|F?
ט&/WS]A0@FeK؏c5*$؝LrPqNZx߀yyV;+V2O- $/
T~xQxuERa˾>cưڝDy7h}todC({*)16``C@Rrh $z
AA6k.?^j*1Z0KRw',9'VqLH-5_H](G[JT
ʲC"]π J8엄ʋݓ0A/Rr|_)%kSⲜxhtRT*ˆGU3ٴfa7>&o]gOҦ)?)V#ŁkL5Xp2n!TcaL*lqxsƺiODӁU`֍߳
NCeH056B^vW1{]
J?
ͧA{Oo,nNSkLuƶ/`_[Hڻ[N2D;za"/`PzkZՕq?W!a_TyJTE@Z@-].g&rSd88ߨPCD,1YZ`G5֒]PχimK7jԴ!xL'COU)UK0QBhy~=DdKT>謒i13Ҁt}6{HU!`σL{c )DD+oq_9̴@嘠p4.ls-п5#-rw\nKý Q 75Ĩ!UccV'
`Dx} e\}#kd^w{f&ty
nv:<ņL
\@Rѵ:_p5hDL=8
G3iaP{EܳWs¦r<#'`_~]M }齗ڲ(sVB65
au#Fc|晥PDvp-]}I+/4ݺm&48JTA
mhl
[jIBC}'^(7(w0Awhɩ29Y]h%0GP7i'7SBS|Oc(4$TJ̀Tbj