Skip to content

Commit f4f815f

Browse files
committed
[#7203] merge note and versionadded directive
1 parent e16a95d commit f4f815f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

service_container/configurators.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ You can configure the service configurator using the ``configurator`` option:
190190
->setConfigurator(array(new Reference('app.email_configurator'), 'configure'))
191191
;
192192
193-
.. note::
193+
194+
.. versionadded:: 3.2
195+
The ``service_id:method_name`` syntax for the YAML configuration format
196+
was introduced in Symfony 3.2.
194197

195198
The traditional configurator syntax in YAML files used an array to define
196199
the service id and the method name:
@@ -203,10 +206,6 @@ You can configure the service configurator using the ``configurator`` option:
203206
# old syntax
204207
configurator: ['@app.email_configurator', configure]
205208
206-
.. versionadded:: 3.2
207-
The ``service_id:method_name`` syntax for the YAML configuration format
208-
was introduced in Symfony 3.2.
209-
210209
That's it! When requesting the ``app.newsletter_manager`` or
211210
``app.greeting_card_manager`` service, the created instance will first be
212211
passed to the ``EmailConfigurator::configure()`` method.

0 commit comments

Comments
 (0)