OptionsResolverInterface deprecated::setRequired()

OptionsResolverInterface setRequired(array $optionNames)

Sets required options.

If these options are not passed to {@link resolve()} and no default has been set for them, an exception will be thrown.

Parameters

array $optionNames A list of option names.

Return Value

OptionsResolverInterface The resolver instance.
doc_Symfony
2016-10-28 06:25:21
Comments
Leave a Comment

Please login to continue.