Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita543894

Browse files
committed
fix typos
1 parentf05980b commita543894

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-
Nestedoption
637+
NestedOption
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 ofdefine it as a simple array of values, you can pass
645-
a closure as the default value of the ``spool`` option withan:class:`Symfony\\Component\\OptionsResolver\\OptionsResolver`
644+
and ``path``. Instead ofdefining it as a simple array of values, you can pass
645+
a closure as the default value of the ``spool`` option witha: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 accesstothe 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 iton runtime.
733+
The fact that an option is defined as nested means that you must pass
734+
an array of values to resolve itat runtime.
735735

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp