From 0e94bd1334dc8f2603ee13cff462c9cd016ca04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 14 Feb 2020 21:18:13 +0100 Subject: [PATCH] Add extension tag parameter note Fixes #1010 --- docs/bundle/consumption_extension.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/bundle/consumption_extension.md b/docs/bundle/consumption_extension.md index cad372103..b05c9f89e 100644 --- a/docs/bundle/consumption_extension.md +++ b/docs/bundle/consumption_extension.md @@ -40,4 +40,15 @@ services: - { name: 'enqueue.consumption.extension', priority: 10 } ``` +When using multiple enqueue instances, you can apply extension to +specific or all instances by providing an additional tag attribute: + +``` +services: + app.enqueue.count_processed_messages_extension: + class: 'AppBundle\Enqueue\CountProcessedMessagesExtension' + tags: + - { name: 'enqueue.consumption.extension', priority: 10, client: 'all' } +``` + [back to index](index.md)