10000
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 a9cfdb2 commit aefc36cCopy full SHA for aefc36c
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