From 776f7e899f3a24fa79245fc9fd193aac3ffef03b Mon Sep 17 00:00:00 2001 From: chx Date: Thu, 15 Sep 2022 12:29:59 -0700 Subject: [PATCH] Update service_decoration.rst Note service tags. --- service_container/service_decoration.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service_container/service_decoration.rst b/service_container/service_decoration.rst index 11e6ed9f8bf..a40d4784e1d 100644 --- a/service_container/service_decoration.rst +++ b/service_container/service_decoration.rst @@ -128,7 +128,9 @@ but keeps a reference of the old one as ``.inner``: The ``#[AsDecorator]`` attribute was introduced in Symfony 6.1. The ``decorates`` option tells the container that the ``App\DecoratingMailer`` -service replaces the ``App\Mailer`` service. If you're using the +service replaces the ``App\Mailer`` service. +:ref:`Service tags are moved as well. +If you're using the :ref:`default services.yaml configuration `, the decorated service is automatically injected when the constructor of the decorating service has one argument type-hinted with the decorated service class.