@@ -611,7 +611,7 @@ the service container gives you a much more appealing option:
611611 services :
612612 my_mailer :
613613 # ...
614-
614+
615615 newsletter_manager :
616616 class : Acme\HelloBundle\Newsletter\NewsletterManager
617617 arguments : ["@my_mailer"]
@@ -696,7 +696,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
696696 services :
697697 my_mailer :
698698 # ...
699-
699+
700700 newsletter_manager :
701701 class : Acme\HelloBundle\Newsletter\NewsletterManager
702702 calls :
@@ -731,7 +731,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
731731 use Symfony\Component\DependencyInjection\Reference;
732732
733733 $container->setDefinition('my_mailer', ...);
734-
734+
735735 $container->setDefinition('newsletter_manager', new Definition(
736736 'Acme\HelloBundle\Newsletter\NewsletterManager'
737737 ))->addMethodCall('setMailer', array(
@@ -777,7 +777,7 @@ it exists and do nothing if it doesn't:
777777 <service id =" my_mailer" >
778778 <!-- ... -->
779779 </service >
780-
780+
781781 <service id =" newsletter_manager" class =" Acme\HelloBundle\Newsletter\NewsletterManager" >
782782 <argument type =" service" id =" my_mailer" on-invalid =" ignore" />
783783 </service >
@@ -792,7 +792,7 @@ it exists and do nothing if it doesn't:
792792 use Symfony\Component\DependencyInjection\ContainerInterface;
793793
794794 $container->setDefinition('my_mailer', ...);
795-
795+
796796 $container->setDefinition('newsletter_manager', new Definition(
797797 'Acme\HelloBundle\Newsletter\NewsletterManager',
798798 array(
0 commit comments