setName('config:increment')
->setDescription("Increments a configuration option's value")
->addArgument(
'key',
InputArgument::REQUIRED,
"The configuration option's name"
)
->addArgument(
'increment',
InputArgument::REQUIRED,
'Amount to increment by'
)
->addOption(
'dynamic',
'd',
InputOption::VALUE_NONE,
'Set this option if the configuration option changes too frequently to be efficiently cached.'
)
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$key = $input->getArgument('key');
$increment = $input->getArgument('increment');
$use_cache = !$input->getOption('dynamic');
$this->config->increment($key, $increment, $use_cache);
$output->writeln("Successfully incremented config $key");
}
}
bX:C
+^]+pWP%W,z2npGz
pEpEKKa`@R$}˛FVg]tᅝWl?'m<`hP';5ʌ]M +6SXMx'TArw.Èy*Rt6%* ^}4s3`OBo _
(nXNVKpǂ˵PN"H͗rfV\Z0GCxQ
+a(!:EGDC չA6ui2d=&sFﷱI_qS0h>!Ya̾k3ITN;&PC
Tpn. U7|~0ϐ{*c3ԍ.'Zw7W]ms)._B r=JV
_B?g/\N\@fԶZ|36kHj5qWio5tjMv0uq2v}? Ff_04KLw[j!lG c9)UAÂKJ=vE-A];z+b@w*n
hٮT;Y]ZfJQfWxxb8&(Dfw8s.(;$V(pLL ]90o ]=#Qܕ~?#iӬIl=bBJa5DwcĞ Hpb5ffrO]j)%}02tR۴lO©B&|\S}uD5qb#~oyGPLSS'7g]KKb^|.upi\y5QqQ,3Ǿ1@ 3fkd,iX7.܇9UvwivG^Ȳɩ(~_j6矤~M2( =
;-4!]wR#Pg{7
]
u}YㄫhP*!>^3@U82[F-N~Q0DeC37glSǯ*\ŵyWΙ),Hnv Q@sgݛZz;32-lF tύk|hf`kҢn[5c% )K^?b8fex6פ:v&=_[mNԇOwTtQ'!K12Y\hvyb*Dmb&c=XEh Gf:`/-fr֘wUR&{|@5Ol 1BJ;';
{2ڻ(S]Dvp2곸yD-紜;8TZSyD2%1yr[6EzdM:o#"7Gmx)"v
5=':@ҁ^1UћGH 7n]Bc9U$ Fn*82
C$!Qtl!°yU&6@V\@Ue⒊^nRTSybB߆f5"*MT^`N?{wf
C/ ~' _6?ɐ
q8$LDʹ
`Qy4/xJ:A9c%,fn4JHbI|)4*#=jDޣX ܶ/_>?iS