OptionsResolverInterface deprecated::addAllowedTypes()

OptionsResolverInterface addAllowedTypes(array $allowedTypes)

Adds allowed types for a list of options.

The types are merged with the allowed types defined previously.

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:19
Comments
Leave a Comment

Please login to continue.