Symfony\Component\OptionsResolver\OptionsResolverInterface::setNormalizers
Sets normalizers that are applied on resolved options.
The normalizers should be closures with the following signature: <code> function (Options $options, $value) </code> The second parameter passed to the closure is the value of the option. The closure should return the normalized value.
Signature
public function setNormalizers(array
$normalizers )
Parameters
$normalizers
— array- An array of closures.
Returns
- OptionsResolverInterface
- The resolver instance.