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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.