Skip to content

Commit 40c2a98

Browse files
committed
minor #17273 [DependencyInjection] Document service tags being moved when decorating (chx)
This PR was submitted for the 6.1 branch but it was merged into the 6.4 branch instead. Discussion ---------- [DependencyInjection] Document service tags being moved when decorating Note service tags. Commits ------- 776f7e8 Update service_decoration.rst
2 parents 62e87d1 + 776f7e8 commit 40c2a98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

service_container/service_decoration.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ but keeps a reference of the old one as ``.inner``:
128128
The ``#[AsDecorator]`` attribute was introduced in Symfony 6.1.
129129

130130
The ``decorates`` option tells the container that the ``App\DecoratingMailer``
131-
service replaces the ``App\Mailer`` service. If you're using the
131+
service replaces the ``App\Mailer`` service.
132+
:ref:`Service tags<How to Work with Service Tags> are moved as well.
133+
If you're using the
132134
:ref:`default services.yaml configuration <service-container-services-load-example>`,
133135
the decorated service is automatically injected when the constructor of the
134136
decorating service has one argument type-hinted with the decorated service class.

0 commit comments

Comments
 (0)