Skip to content

Commit 94495ac

Browse files
committed
minor. refs #12426
1 parent 73e9af7 commit 94495ac

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

components/options_resolver.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -778,18 +778,18 @@ the option::
778778
This closure receives as argument the value of the option after validating it
779779
and before normalizing it when the option is being resolved.
780780

781-
Chaining option configurations
781+
Chaining Option Configurations
782782
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
783783

784784
In many cases you may need to define multiple configurations for each option.
785-
For example, suppose the ``Mailer`` class has an ``host`` option that is required
785+
For example, suppose the ``InvoiceMailer`` class has an ``host`` option that is required
786786
and a ``transport`` option which can be one of ``sendmail``, ``mail`` and ``smtp``.
787787
You can improve the readability of the code avoiding to duplicate option name for
788-
each configuration using the method
789-
:method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::define``::
788+
each configuration using the :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::define`
789+
method::
790790

791791
// ...
792-
class Mailer
792+
class InvoiceMailer
793793
{
794794
// ...
795795
public function configureOptions(OptionsResolver $resolver)
@@ -808,7 +808,8 @@ each configuration using the method
808808

809809
.. versionadded:: 5.1
810810

811-
The ``define()`` method was introduced in Symfony 5.1.
811+
The :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::define` method
812+
was introduced in Symfony 5.1.
812813

813814
Performance Tweaks
814815
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)