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 c95e623 commit 7e78509Copy full SHA for 7e78509
service_container/factories.rst
@@ -100,7 +100,7 @@ create its object:
100
the configured class name may be used by compiler passes and therefore
101
should be set to a sensible value.
102
103
-You can also use the ``factory`` option to create services from static methods
+When the static factory method is on the same class as the created instance, the class name can be omitted from the factory declaration.
104
of the class itself.
105
Let's suppose the ``NewsletterManager`` class has a ``create()`` method that needs
106
to be called to create the object and need a send email address::
0 commit comments