Skip to content

Commit bcd6a48

Browse files
committed
Tweaks
1 parent e74d5cf commit bcd6a48

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

components/options_resolver.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,15 @@ if you need to use other options during normalization::
435435
}
436436
}
437437

438+
To normalize a new allowed value in sub-classes that are being normalized
439+
in parent classes use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::addNormalizer`.
440+
This way, the ``$value`` argument will receive the previously normalized
441+
value, otherwise you can prepend the new normalizer by passing ``true`` as
442+
third argument.
443+
438444
.. versionadded:: 4.3
439445

440-
To normalize a new allowed value in sub-classes that is being normalized
441-
in parent classes use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::addNormalizer`.
442-
This way, the ``$value`` argument will receive the previously normalized
443-
value, otherwise you can prepend the new normalizer by passing ``true`` as
444-
third argument.
446+
The ``addNormalizer()`` method was introduced in Symfony 4.3.
445447

446448
Default Values that Depend on another Option
447449
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)