File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -184,16 +184,16 @@ all the classes are already loaded as services. All you need to do is specify th
184
184
$container->getDefinition(GreetingCardManager::class)
185
185
->setConfigurator(array(new Reference(EmailConfigurator::class), 'configure'));
186
186
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:
189
189
190
- .. code-block :: yaml
190
+ .. code-block :: yaml
191
191
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]
197
197
198
198
That's it! When requesting the ``App\Mail\NewsletterManager `` or
199
199
``App\Mail\GreetingCardManager `` service, the created instance will first be
You can’t perform that action at this time.
0 commit comments