@@ -569,7 +569,7 @@ the service container gives you a much more appealing option:
569569 services :
570570 my_mailer :
571571 # ...
572-
572+
573573 newsletter_manager :
574574 class : Acme\HelloBundle\Newsletter\NewsletterManager
575575 arguments : ["@my_mailer"]
@@ -762,7 +762,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
762762 services :
763763 my_mailer :
764764 # ...
765-
765+
766766 newsletter_manager :
767767 class : Acme\HelloBundle\Newsletter\NewsletterManager
768768 calls :
@@ -797,7 +797,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
797797 use Symfony\Component\DependencyInjection\Reference;
798798
799799 $container->setDefinition('my_mailer', ...);
800-
800+
801801 $container->setDefinition('newsletter_manager', new Definition(
802802 'Acme\HelloBundle\Newsletter\NewsletterManager'
803803 ))->addMethodCall('setMailer', array(
@@ -938,7 +938,7 @@ it exists and do nothing if it doesn't:
938938 <service id =" my_mailer" >
939939 <!-- ... -->
940940 </service >
941-
941+
942942 <service id =" newsletter_manager" class =" Acme\HelloBundle\Newsletter\NewsletterManager" >
943943 <argument type =" service" id =" my_mailer" on-invalid =" ignore" />
944944 </service >
@@ -953,7 +953,7 @@ it exists and do nothing if it doesn't:
953953 use Symfony\Component\DependencyInjection\ContainerInterface;
954954
955955 $container->setDefinition('my_mailer', ...);
956-
956+
957957 $container->setDefinition('newsletter_manager', new Definition(
958958 'Acme\HelloBundle\Newsletter\NewsletterManager',
959959 array(
0 commit comments