Skip to content

Commit 776f7e8

Browse files
chxjaviereguiluz
authored andcommitted
Update service_decoration.rst
Note service tags.
1 parent 62e87d1 commit 776f7e8

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)