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 3ab6403 commit 944f051Copy full SHA for 944f051
service_container/factories.rst
@@ -136,10 +136,7 @@ called to create its object. In this case we don't need a dedicated factory clas
136
# ...
137
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']
+ factory: [null, 'create']
143
arguments:
144
$sender: 'fabien@symfony.com'
145
0 commit comments