Skip to content

Commit 29ffced

Browse files
authored
Update service_container/factories.rst
1 parent 7e78509 commit 29ffced

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service_container/factories.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ create its object:
9999
only depends on the object that is returned by the factory. However,
100100
the configured class name may be used by compiler passes and therefore
101101
should be set to a sensible value.
102+
Using the Class as Factory Itself
103+
---------------------------------
102104

103105
When the static factory method is on the same class as the created instance, the class name can be omitted from the factory declaration.
104106
of the class itself.

0 commit comments

Comments
 (0)