Skip to content

Commit 19942a4

Browse files
committed
minor symfony#9570 fix indentation (xabbuh)
This PR was merged into the 4.0 branch. Discussion ---------- fix indentation This fixes symfony#9564. Commits ------- 5e33d78 fix indentation
2 parents ac0e844 + 5e33d78 commit 19942a4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

service_container/configurators.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,16 @@ all the classes are already loaded as services. All you need to do is specify th
184184
$container->getDefinition(GreetingCardManager::class)
185185
->setConfigurator(array(new Reference(EmailConfigurator::class), 'configure'));
186186
187-
The traditional configurator syntax in YAML files used an array to define
188-
the service id and the method name:
187+
The traditional configurator syntax in YAML files used an array to define
188+
the service id and the method name:
189189

190-
.. code-block:: yaml
190+
.. code-block:: yaml
191191
192-
app.newsletter_manager:
193-
# new syntax
194-
configurator: 'App\Mail\EmailConfigurator:configure'
195-
# old syntax
196-
configurator: ['@App\Mail\EmailConfigurator', configure]
192+
app.newsletter_manager:
193+
# new syntax
194+
configurator: 'App\Mail\EmailConfigurator:configure'
195+
# old syntax
196+
configurator: ['@App\Mail\EmailConfigurator', configure]
197197
198198
That's it! When requesting the ``App\Mail\NewsletterManager`` or
199199
``App\Mail\GreetingCardManager`` service, the created instance will first be

0 commit comments

Comments
 (0)