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::
778
778
This closure receives as argument the value of the option after validating it
779
779
and before normalizing it when the option is being resolved.
780
780
781
- Chaining option configurations
781
+ Chaining Option Configurations
782
782
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
783
783
784
784
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
786
786
and a ``transport `` option which can be one of ``sendmail ``, ``mail `` and ``smtp ``.
787
787
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::
790
790
791
791
// ...
792
- class Mailer
792
+ class InvoiceMailer
793
793
{
794
794
// ...
795
795
public function configureOptions(OptionsResolver $resolver)
@@ -808,7 +808,8 @@ each configuration using the method
808
808
809
809
.. versionadded :: 5.1
810
810
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.
812
813
813
814
Performance Tweaks
814
815
~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments