From 33091aaefaa1d944b92c44cef02ec36e5b757338 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Mon, 1 Jan 2018 16:53:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=BD=D0=B0=20yii2-queue=20=D1=81=20amqp-interop=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B5=D0=B9=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20RabbitMQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config/config.php | 3 ++- composer.json | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/common/config/config.php b/common/config/config.php index 692fbed..7ab2f96 100644 --- a/common/config/config.php +++ b/common/config/config.php @@ -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'), diff --git a/composer.json b/composer.json index 7ec9c12..75f759f 100644 --- a/composer.json +++ b/composer.json @@ -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": {