OptionsResolver::setDefined()

OptionsResolver setDefined(string|string[] $optionNames)

Defines a valid option name.

Defines an option name without setting a default value. The option will be accepted when passed to {@link resolve()}. When not passed, the option will not be included in the resolved options.

Parameters

string|string[] $optionNames One or more option names

Return Value

OptionsResolver This instance

Exceptions

AccessException If called from a lazy option or normalizer
doc_Symfony
2016-10-28 06:25:18
Comments
Leave a Comment

Please login to continue.