@@ -640,7 +640,7 @@ Nested Option
640640.. versionadded :: 4.2
641641 This feature was introduced in Symfony 4.2.
642642
643- Suppose you want an option named ``spool `` which has two sub-options ``type ``
643+ Suppose you have an option named ``spool `` which has two sub-options ``type ``
644644and ``path ``. Instead of defining it as a simple array of values, you can pass
645645a closure as the default value of the ``spool `` option with a :class: `Symfony\\ Component\\ OptionsResolver\\ OptionsResolver `
646646argument. Based on this instance, you can define the options under ``spool `` and its desired default
@@ -676,11 +676,11 @@ value::
676676 ),
677677 ));
678678
679- It allows you to create a nested options system with required options, validation (type, value),
680- normalization and more .
679+ Also you can define required options, validation (type, value) and normalization of these
680+ nested options .
681681
682682If the default value of a child option depend on another option defined in parent level,
683- adds a second ``Options `` argument to the closure::
683+ adds a second ``Options `` argument to the closure for access to them ::
684684
685685 class Mailer
686686 {
@@ -703,7 +703,7 @@ adds a second ``Options`` argument to the closure::
703703 The arguments of the closure must be type hinted as ``OptionsResolver `` and ``Options `` respectively.
704704 Otherwise, the closure itself is considered as the default value of the option.
705705
706- In same way, parent options can access the child option as follows ::
706+ In same way, parent options can access to the child option as normal array ::
707707
708708 class Mailer
709709 {
0 commit comments