We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2817d0 commit db00c9aCopy full SHA for db00c9a
service_container/service_decoration.rst
@@ -421,4 +421,11 @@ Three different behaviors are available:
421
}
422
423
424
+.. tip::
425
+
426
+ Sometimes, you may want to add a compiler pass that creates service
427
+ definitions on the fly. If you want to decorate such a service,
428
+ be sure that your compiler pass is registered with ``PassConfig::TYPE_BEFORE_OPTIMIZATION``
429
+ type so that the decoration pass will be able to find created services.
430
431
.. _`Decorator pattern`: https://en.wikipedia.org/wiki/Decorator_pattern
0 commit comments