You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -516,6 +516,32 @@ Be aware that queues providers are responsible for the proper calls to `setDeque
516
516
(not `ConsumerInterface`). In case service providing queues implements `DequeuerAwareInterface`, a call to
517
517
`setDequeuer`is added to the definition of the service with a `DequeuerInterface` currently being a `MultipleConsumer`.
518
518
519
+
### Dynamic Consumers ###
520
+
521
+
Sometimes you have to change the consumer's configuration on the fly.
522
+
Dynamic consumers allow you to define the consumers queue options programatically, based on the context.
523
+
524
+
e.g. In a scenario when the defined consumer must be responsible for a dynamic number of topics and you do not want (or can't) change it's configuration every time.
525
+
526
+
Define a service `queue_options_provider` that implements the `QueueOptionsProviderInterface`, and add it to your `dynamic_consumers` configuration.
$this->assertFalse($this->command->getDefinition()->getOption('without-signals')->acceptValue()); // It shouldn't accept value because it is a true/false input
0 commit comments