OptionsResolverInterface deprecated::replaceDefaults()

OptionsResolverInterface replaceDefaults(array $defaultValues)

Replaces default option values.

Old defaults are erased, which means that closures passed here cannot access the previous default value. This may be useful to improve performance if the previous default value is calculated by an expensive closure.

Parameters

array $defaultValues A list of option names as keys and default values or closures as values.

Return Value

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

Please login to continue.