php-amqplib / RabbitMqBundle

RabbitMQ Bundle for the Symfony web framework
MIT License
1.22k stars 470 forks source link

Unrecognized option queue_options_provider #654

Closed zabidok closed 2 years ago

zabidok commented 3 years ago

Using php-amqplib/rabbitmq-bundle 2.8.0 in config/packages/old_sound_rabbit_mq.yaml i got such settings:

old_sound_rabbit_mq: connections: default: url: '%env(RABBITMQ_URL)%' consumers: task: connection: default exchange_options: { name: 'task', type: direct } queue_options: { name: 'server1' } callback: App\Consumer\BotTask queue_options_provider: App\Util\QueueOptions

but got error
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized option "queue_options_provider" under "old_sound_rabbit_mq.consumers.task". Available options are "auto_setup_fabric", "callback", "connection", "enable_logger", "exchange_options", "grace
ful_max_execution", "idle_timeout", "idle_timeout_exit_code", "qos_options", "queue_options", "timeout_wait".

where is problem?

andrew-demb commented 3 years ago

Option queue_options_provider should be used only within dynamic_consumers.

Check docs here: https://github.com/php-amqplib/RabbitMqBundle/blob/d8b9457a4649cf92ae154a31ebdf321107f72cb7/README.md#dynamic-consumers

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 10 days with no activity.