OptionsResolverInterface deprecated::isRequired()

bool isRequired(string $option)

Returns whether an option is required.

An option is required if it has been passed to {@link setRequired()}, but not to {@link setDefaults()}. That is, the option has been declared as required and no default value has been set.

Parameters

string $option The name of the option.

Return Value

bool Whether the option is required.
doc_Symfony
2016-10-28 06:25:20
Comments
Leave a Comment

Please login to continue.