Skip to content

Commit 0b63b52

Browse files
committed
fix typos
1 parent ee3392d commit 0b63b52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/options_resolver.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -634,15 +634,15 @@ let you find out which options are defined::
634634
}
635635
}
636636

637-
Nested option
637+
Nested Option
638638
~~~~~~~~~~~~~
639639

640640
.. versionadded:: 4.2
641641
This feature was introduced in Symfony 4.2.
642642

643643
Suppose you want an option named ``spool`` which has two sub-options ``type``
644-
and ``path``. Instead of define it as a simple array of values, you can pass
645-
a closure as the default value of the ``spool`` option with an :class:`Symfony\\Component\\OptionsResolver\\OptionsResolver`
644+
and ``path``. Instead of defining it as a simple array of values, you can pass
645+
a closure as the default value of the ``spool`` option with a :class:`Symfony\\Component\\OptionsResolver\\OptionsResolver`
646646
argument. Based on this instance, you can define the options under ``spool`` and its desired default
647647
value::
648648

@@ -706,7 +706,7 @@ adds a second ``Options`` argument to the closure::
706706
The arguments of the closure must be type hinted as ``OptionsResolver`` and ``Options`` respectively.
707707
Otherwise, the closure itself is considered as the default value of the option.
708708

709-
In same way, parent options can access to the child option as follows::
709+
In same way, parent options can access the child option as follows::
710710

711711
// ...
712712
class Mailer
@@ -730,8 +730,8 @@ In same way, parent options can access to the child option as follows::
730730

731731
.. note::
732732

733-
The fact that an option is defined as nested, means that you must to pass
734-
an array of values to resolve it on runtime.
733+
The fact that an option is defined as nested means that you must pass
734+
an array of values to resolve it at runtime.
735735

736736
Deprecating the Option
737737
~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)