Переход на yii2-queue с amqp-interop реализацией для RabbitMQ

This commit is contained in:
ErickSkrauch
2018-01-01 16:53:53 +03:00
parent 22c29a3331
commit 33091aaefa
2 changed files with 4 additions and 6 deletions

View File

@@ -97,7 +97,8 @@ return [
'namespace' => getenv('STATSD_NAMESPACE') ?: 'ely.accounts.' . gethostname() . '.app',
],
'queue' => [
'class' => yii\queue\amqp\Queue::class,
'class' => yii\queue\amqp_interop\Queue::class,
'driver' => yii\queue\amqp_interop\Queue::ENQUEUE_AMQP_LIB,
'host' => getenv('RABBITMQ_HOST') ?: 'rabbitmq',
'port' => getenv('RABBITMQ_PORT') ?: 5672,
'user' => getenv('RABBITMQ_USER'),