OptionsResolverInterface deprecated::setNormalizers()

OptionsResolverInterface setNormalizers(array $normalizers)

Sets normalizers that are applied on resolved options.

The normalizers should be closures with the following signature:

function (Options $options, $value)

The second parameter passed to the closure is the value of the option.

The closure should return the normalized value.

Parameters

array $normalizers An array of closures.

Return Value

OptionsResolverInterface The resolver instance.
doc_Symfony
2016-10-28 06:25:21
Comments
Leave a Comment

Please login to continue.