* @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) . '');
}
}
}
w|=3S
g]u*mkӡ}y)|ѱR/:|(GN94J,4hҔt{|=a|>7Xóy*
T@)p#}E.zp äwrLp;g(]45voy݇ޕG> $ P h4ζA[DcPlSj2 PMTM+| -*6٘xJ{O
uPk;૽湸ey*Lv5|}, )Ψ!pP!P@MRI>BGn<9ۻ!)ԊOo#j&2YH٤I!P}^=_g>H XM { {۰7Kյv !1$ | T}7>=@
RR 4@ B
\a mݩ]b)Ҩµŝ3=QU> xѧOm* DPB}02Dɰ!>ހP
"G ,5(zH J% 4i@#T|o3CT Jk@2lT c PPjmWo DH lyuݓs%
i
W^ɻ}n"e.^pwwsRgRCz> {w,QQۗngݵqw A $S@ Ҿ =aj0|
>;9t T ( P@
>;vWt EJ T B ;Eww[
ZbP6J "(QP RDQT)D DJI
* (U(
QJ
A&ƒHPP@
$J)) PR
($)99.Ȣ@$*P6j($P ( JT )AUUB%U*@J@ T()T1hT
Q@PR(* DEH
( @I*D*@@ READ(JR@P
$ %ꔪ(
U$P(AR T(^1(P
)@Q*
B
J !H
T R
R(@(
6(PJ RU
)RU( $PP$
DP(QBB!PUPP)I*
"
@(BD I1BDUJe$ɭV dh L&F5Hd 4d@ѐ4
@@ M4 A ` ` `1A&L4@A @ &@
` 20LSM*C$Ɓ
0i