Symfony\Component\OptionsResolver\Options::overload
Overloads the value of a given option.
Contrary to , this method keeps the previous default value of the option so that you can access it if you pass a closure. Passed closures should have the following signature: <code> function (Options $options, $value) </code> The second parameter passed to the closure is the current default value of the option.
Signature
public function overload(string
$option,
mixed
$value )
Parameters
$option
— string- The option name.
$value
— mixed- The option value.
Errors/Exceptions
-
OptionDefinitionException
- If options have already been read.