Skip to content

Commit fc4a554

Browse files
committed
Added limitations in 'Managing Common Dependencies with Parent Services' with a caution
1 parent 3227cf2 commit fc4a554

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/dependency_injection/parentservices.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ when the child services are instantiated.
273273
is that omitting the ``parent`` config key will mean that the ``calls``
274274
defined on the ``mail_manager`` service will not be executed when the
275275
child services are instantiated.
276+
277+
.. caution::
278+
279+
``scope``, ``abstract``, ``abstract`` attributes are always taken from the child.
276280

277281
The parent service is abstract as it should not be directly retrieved from the
278282
container or passed into another service. It exists merely as a "template" that

0 commit comments

Comments
 (0)