OptionsResolver::isMissing()

bool isMissing(string $option)

Returns whether an option is missing a default value.

An option is missing if it was passed to {@link setRequired()}, but not to {@link setDefault()}. This option must be passed explicitly to {@link resolve()}, otherwise an exception will be thrown.

Parameters

string $option The name of the option

Return Value

bool Whether the option is missing
doc_Symfony
2016-10-28 06:25:15
Comments
Leave a Comment

Please login to continue.