We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1695853 commit 13505d1Copy full SHA for 13505d1
components/dependency_injection/introduction.rst
@@ -147,7 +147,7 @@ If you do want to though then the container can call the setter method::
147
148
$container
149
->register('newsletter_manager', 'NewsletterManager')
150
- ->addMethodCall('setMailer', new Reference('mailer'));
+ ->addMethodCall('setMailer', array(new Reference('mailer')));
151
152
You could then get your ``newsletter_manager`` service from the container
153
like this::
0 commit comments