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 d7630f3 commit 3ab6403Copy full SHA for 3ab6403
service_container/factories.rst
@@ -138,6 +138,7 @@ called to create its object. In this case we don't need a dedicated factory clas
138
App\Email\NewsletterManager:
139
# the first argument is the class and the second argument is the static method
140
# note that we omit the '@' prefix when using the class name as the first argument!
141
+ # you can also remove the class name entirely and use 'null' instead
142
factory: ['App\Email\NewsletterManager', 'create']
143
arguments:
144
$sender: 'fabien@symfony.com'
0 commit comments