Symfony\Component\OptionsResolver\OptionsResolverInterface::isRequired
Returns whether an option is required.
An option is required if it has been passed to , but not to . That is, the option has been declared as required and no default value has been set.
Signature
public function isRequired(string
$option )
Parameters
$option
— string- The name of the option.
Returns
- Boolean
- Whether the option is required.