Symfony\Component\OptionsResolver\OptionsResolverInterface::addAllowedValues
Adds allowed values for a list of options.
The values are merged with the allowed values defined previously.
Signature
public function addAllowedValues(array
$allowedValues )
Parameters
$allowedValues
— array- A list of option names as keys and arrays
with values acceptable for that option as
values.
Returns
- OptionsResolverInterface
- The resolver instance.
Errors/Exceptions
-
InvalidOptionsException
- If an option has not been defined