Symfony\Component\OptionsResolver\OptionsResolver::validateOptionValues
Validates that the given option values match the allowed values and throws an exception otherwise.
Signature
private function validateOptionValues(array
$options )
Parameters
$options
— array- A list of option values.
Errors/Exceptions
-
InvalidOptionsException
- If any of the values does not match the