diff --git a/service_container/optional_dependencies.rst b/service_container/optional_dependencies.rst index e7ab543e34c..b387bc92dcc 100644 --- a/service_container/optional_dependencies.rst +++ b/service_container/optional_dependencies.rst @@ -91,7 +91,7 @@ call if the service exists and remove the method call if it does not: - + @@ -110,7 +110,7 @@ call if the service exists and remove the method call if it does not: ->register('app.newsletter_manager', NewsletterManager::class) ->addMethodCall('setMailer', array( new Reference( - 'my_mailer', + 'app.mailer', ContainerInterface::IGNORE_ON_INVALID_REFERENCE ), ))