* @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\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class get extends command
{
protected function configure()
{
$this
->setName('config:get')
->setDescription("Gets a configuration option's value")
->addArgument(
'key',
InputArgument::REQUIRED,
"The configuration option's name"
)
->addOption(
'no-newline',
null,
InputOption::VALUE_NONE,
'Set this option if the value should be printed without a new line at the end.'
)
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$key = $input->getArgument('key');
if (isset($this->config[$key]) && $input->getOption('no-newline'))
{
$output->write($this->config[$key]);
}
elseif (isset($this->config[$key]))
{
$output->writeln($this->config[$key]);
}
else
{
$output->writeln("Could not get config $key");
}
}
}
&^>Y1ƻ.#no:6)#EUQέA~cKm9w_iiOU8U:L5wCb\.;ьC5(enE,ןMdTNuո*v>0la%^GVzM.?e!(8R3
Q^)6E;BϽ6%̟0iLEVz3'8$+$T
LpDǪF*
a5t@W,rN?c4ˤiǐw3<zgǃO/Iɜq52T hUE4z@
U/H]1߮>Ax(C)
+̅r *&
P㝕
?S(<{RƨcXngw"!ɛջ#}^T#{f\gթa~ 3 S*@Ph]XCVvŁL=x
MFUL5k!kJ44\cX)\ڑ@_HwDFE[ô*RѬ:_b:Rͬ:MdTZ:p+H4I&`a^bv 4UJ3M[*~ձM:hMD;Kf8Уkĩ4.)REN]w"h3+2N}c}uxHu4#%3QxB9yUz f`\L0!;0!nLogaQdԚʎfƟg?hڊws S8X^#W!_
ہUۤ(^ MrKn^re4kp1l
o9m-w5c)^7Da@/ڜo_)?~W4C0a9MFPMj.a3J_b`S=<28hu$|Dv@oD>[b#ϰv+@$W?<(=M4Uk`T,!GfS!=>_mY?n˳jFK<;fȹ
R,4N0eJq=-K?6WE_q(Qbiqh6.\tS)u[b!,{ Y@/TB}z|]m~P+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