- Issue created by @rgpublic
The recommended way to get a strict Parameter doesn't really work. You can't just say:
Parameter::get('mykey','strict');
This fails because all the other following arguments need to be call-by-reference.
So if you want the strict call you have the rather complicated:
$context='strict';
echo Parameter::get('mykey',$context);
Additionally you also need the "->getProcessedData()->getValue();" part everytime.
This is a bit complicated for simple strings or secrets. I'd suggest providing a convenience method:
echo Parameter::getStrictValue('mykey');
that does all these things at once and is thus equivalent to:
$context='strict';
echo Parameter::get('mykey',$context)->getProcessedData()->getValue();
Active
1.6
Code