Skip to content

Commit 33a27ca

Browse files
committedOct 16, 2024·
Merge branch '6.4' into 7.1
* 6.4: Update service_decoration.rst
2 parents 0124dd0 + df61a96 commit 33a27ca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎service_container/service_decoration.rst

+9-1
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,20 @@ automatically changed to ``'.inner'``):
207207
->args([service('.inner')]);
208208
};
209209
210-
.. tip::
210+
.. note::
211211

212212
The visibility of the decorated ``App\Mailer`` service (which is an alias
213213
for the new service) will still be the same as the original ``App\Mailer``
214214
visibility.
215215

216+
.. note::
217+
218+
All custom :ref:`service tags </service_container/tags>`_ from the decorated
219+
service are removed in the new service. Only certain built-in service tags
220+
defined by Symfony are retained: ``container.service_locator``, ``container.service_subscriber``,
221+
``kernel.event_subscriber``, ``kernel.event_listener``, ``kernel.locale_aware``,
222+
and ``kernel.reset``.
223+
216224
.. note::
217225

218226
The generated inner id is based on the id of the decorator service

0 commit comments

Comments
 (0)
Please sign in to comment.