Skip to content

Commit eb36653

Browse files
javihgilxabbuh
authored andcommitted
Update optional_dependencies.rst
1 parent a2cf43a commit eb36653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/optional_dependencies.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ call if the service exists and remove the method call if it does not:
9191
9292
<service id="app.newsletter_manager" class="AppBundle\Newsletter\NewsletterManager">
9393
<call method="setMailer">
94-
<argument type="service" id="my_mailer" on-invalid="ignore"/>
94+
<argument type="service" id="app.mailer" on-invalid="ignore"/>
9595
</call>
9696
</service>
9797
</services>
@@ -110,7 +110,7 @@ call if the service exists and remove the method call if it does not:
110110
->register('app.newsletter_manager', NewsletterManager::class)
111111
->addMethodCall('setMailer', array(
112112
new Reference(
113-
'my_mailer',
113+
'app.mailer',
114114
ContainerInterface::IGNORE_ON_INVALID_REFERENCE
115115
),
116116
))

0 commit comments

Comments
 (0)