Skip to content

Commit 13505d1

Browse files
committed
Fix DependencyInjection example (Introduction)
1 parent 1695853 commit 13505d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dependency_injection/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ If you do want to though then the container can call the setter method::
147147

148148
$container
149149
->register('newsletter_manager', 'NewsletterManager')
150-
->addMethodCall('setMailer', new Reference('mailer'));
150+
->addMethodCall('setMailer', array(new Reference('mailer')));
151151

152152
You could then get your ``newsletter_manager`` service from the container
153153
like this::

0 commit comments

Comments
 (0)