OptionsResolverInterface deprecated::setAllowedTypes()

OptionsResolverInterface setAllowedTypes(array $allowedTypes)

Sets allowed types for a list of options.

Parameters

array $allowedTypes A list of option names as keys and type names passed as string or array as values.

Return Value

OptionsResolverInterface The resolver instance.

Exceptions

InvalidOptionsException If an option has not been defined for which an allowed type is set.
doc_Symfony
2016-10-28 06:25:21
Comments
Leave a Comment

Please login to continue.