Skip to content

Commit 0757097

Browse files
committed
Merge pull request symfony#2502 from venu/adding_caution_parentservices
Added limitations in 'Managing Common Dependencies with Parent Services'...
2 parents 0bbfd9a + 41363db commit 0757097

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``, ``tags`` 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)