File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 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
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
You can’t perform that action at this time.
0 commit comments