Переход на 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'),

View File

@ -26,7 +26,8 @@
"webmozart/assert": "^1.2.0",
"goaop/framework": "~2.1.2",
"domnikl/statsd": "^2.6",
"yiisoft/yii2-queue": "dev-fix_amqp_error_behavior#385e1cc0afcce0d6712080beb11922735e72f59d"
"yiisoft/yii2-queue": "~2.0.2",
"enqueue/amqp-lib": "^0.8.11"
},
"require-dev": {
"yiisoft/yii2-debug": "*",
@ -55,10 +56,6 @@
{
"type": "git",
"url": "git@github.com:erickskrauch/Codeception.git"
},
{
"type": "git",
"url": "git@github.com:erickskrauch/yii2-queue.git"
}
],
"autoload": {