Skip to content

Commit 5e0dccd

Browse files
committed
minor #10957 Fix of old service ids styles to class name (SenseException)
This PR was merged into the 3.4 branch. Discussion ---------- Fix of old service ids styles to class name The docs for the service decoration used the old service ids while the FQCN ones are shown in the code examples. This PR fixed these. Commits ------- 47e01ad Fix of old service ids styles to class name
2 parents 7bd5608 + 47e01ad commit 5e0dccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/service_decoration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ When overriding an existing definition, the original service is lost:
5151
Most of the time, that's exactly what you want to do. But sometimes,
5252
you might want to decorate the old one instead (i.e. apply the `Decorator pattern`_).
5353
In this case, the old service should be kept around to be able to reference
54-
it in the new one. This configuration replaces ``app.mailer`` with a new one,
55-
but keeps a reference of the old one as ``app.decorating_mailer.inner``:
54+
it in the new one. This configuration replaces ``App\Mailer`` with a new one,
55+
but keeps a reference of the old one as ``App\DecoratingMailer.inner``:
5656

5757
.. configuration-block::
5858

0 commit comments

Comments
 (0)