File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -778,18 +778,18 @@ the option::
778778This closure receives as argument the value of the option after validating it
779779and before normalizing it when the option is being resolved.
780780
781- Chaining option configurations
781+ Chaining Option Configurations
782782~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
783783
784784In 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
786786and a ``transport `` option which can be one of ``sendmail ``, ``mail `` and ``smtp ``.
787787You 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
813814Performance Tweaks
814815~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments