From 950713a8ae88eef8baad26aa7855372d19b3f490 Mon Sep 17 00:00:00 2001 From: "Javi H. Gil" Date: Tue, 16 May 2017 10:57:33 +0200 Subject: [PATCH] Update optional_dependencies.rst --- service_container/optional_dependencies.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ), ))