OptionsResolverInterface deprecated::setAllowedValues()

OptionsResolverInterface setAllowedValues(array $allowedValues)

Sets allowed values for a list of options.

Parameters

array $allowedValues A list of option names as keys and arrays with values acceptable for that option as values.

Return Value

OptionsResolverInterface The resolver instance.

Exceptions

InvalidOptionsException If an option has not been defined (see {@link isKnown()}) for which an allowed value is set.
doc_Symfony
2016-10-28 06:25:21
Comments
Leave a Comment

Please login to continue.