From 12eb2d1d0ac503b5ba3e2fc93c63e6ff9159482d Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 14 Jan 2024 00:09:52 +0700 Subject: [PATCH] Add default DI binding --- config/di.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/di.php b/config/di.php index 5e4a038f..8bfe7340 100644 --- a/config/di.php +++ b/config/di.php @@ -6,6 +6,8 @@ use Yiisoft\Queue\Cli\LoopInterface; use Yiisoft\Queue\Cli\SignalLoop; use Yiisoft\Queue\Cli\SimpleLoop; +use Yiisoft\Queue\Message\JsonMessageSerializer; +use Yiisoft\Queue\Message\MessageSerializerInterface; use Yiisoft\Queue\Middleware\Consume\ConsumeMiddlewareDispatcher; use Yiisoft\Queue\Middleware\Consume\MiddlewareFactoryConsume; use Yiisoft\Queue\Middleware\Consume\MiddlewareFactoryConsumeInterface; @@ -52,4 +54,5 @@ FailureMiddlewareDispatcher::class => [ '__construct()' => ['middlewareDefinitions' => $params['yiisoft/queue']['middlewares-fail']], ], + MessageSerializerInterface::class => JsonMessageSerializer::class, ];