We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 475eff9 commit 8dd5e8bCopy full SHA for 8dd5e8b
components/dependency_injection/factories.rst
@@ -79,8 +79,8 @@ class:
79
80
When you specify the class to use for the factory (via ``factory_class``)
81
the method will be called statically. If the factory itself should be instantiated
82
-and the resulting object's method called (as in this example), configure the
83
-factory itself as a service:
+and the resulting object's method called, configure the factory itself as a service.
+In this case, the method (e.g. get) should be changed to be non-static:
84
85
.. configuration-block::
86
0 commit comments