Skip to content

Commit 944f051

Browse files
authored
Update service_container/factories.rst
1 parent 3ab6403 commit 944f051

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

service_container/factories.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,7 @@ called to create its object. In this case we don't need a dedicated factory clas
136136
# ...
137137
138138
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']
139+
factory: [null, 'create']
143140
arguments:
144141
$sender: 'fabien@symfony.com'
145142

0 commit comments

Comments
 (0)