Skip to content

Commit 4236e61

Browse files
authored
Update service_decoration.rst
Note service tags.
1 parent 4d11ed3 commit 4236e61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

service_container/service_decoration.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ but keeps a reference of the old one as ``.inner``:
131131
The ``#[AsDecorator]`` attribute was introduced in Symfony 6.1.
132132

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

0 commit comments

Comments
 (0)