Skip to content

Commit f014bea

Browse files
committed
Add a versionadded directive
1 parent 1cd54be commit f014bea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

service_container/service_decoration.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ but keeps a reference of the old one as ``.inner``:
126126
->decorate(Mailer::class);
127127
};
128128
129+
.. versionadded:: 6.1
130+
131+
The ``#[AsDecorator]`` attribute was introduced in Symfony 6.1.
132+
129133
The ``decorates`` option tells the container that the ``App\DecoratingMailer``
130134
service replaces the ``App\Mailer`` service. If you're using the
131135
:ref:`default services.yaml configuration <service-container-services-load-example>`,

0 commit comments

Comments
 (0)