Symfony\Component\OptionsResolver\OptionsResolverInterface::setRequired
Sets required options.
If these options are not passed to and no default has been set for them, an exception will be thrown.
Signature
public function setRequired(array
$optionNames )
Parameters
$optionNames
— array- A list of option names.
Returns
- OptionsResolverInterface
- The resolver instance.
Errors/Exceptions
-
OptionDefinitionException
- When trying to pass default values.