Repository navigation
Expand file tree
/
Copy pathparams.php
More file actions
56 lines (53 loc) · 2.08 KB
/
Copy pathparams.php
File metadata and controls
56 lines (53 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
declare(strict_types=1);
use Yiisoft\Queue\Command\ConsumeCommand;
use Yiisoft\Queue\Debug\QueueCollector;
use Yiisoft\Queue\Debug\QueueConsumerProviderProxy;
use Yiisoft\Queue\Debug\QueueProducerProviderProxy;
use Yiisoft\Queue\Debug\QueueWorkerInterfaceProxy;
use Yiisoft\Queue\Message\Handler\HandlerInterface;
use Yiisoft\Queue\Message\Serializer\MessageSerializer;
use Yiisoft\Queue\Provider\QueueConsumerProviderInterface;
use Yiisoft\Queue\Provider\QueueProducerProviderInterface;
use Yiisoft\Queue\Worker\WorkerInterface;
return [
'yiisoft/yii-console' => [
'commands' => [
'queue:consume' => ConsumeCommand::class,
],
],
'yiisoft/queue' => [
/**
* Map of message type to message class. Used by {@see MessageSerializer} to reconstruct the original typed
* message object on unserialize. Example:
* [
* 'send-email' => SendEmailMessage::class,
* 'generate-report' => GenerateReportMessage::class,
* ]
*/
'messages' => [],
/**
* Map of message type to handler. The worker uses this to find the handler for a received message.
* A handler may be a class name implementing {@see HandlerInterface}, a callable, or any definition
* supported by yiisoft/injector. Example:
* [
* 'send-email' => SendEmailHandler::class,
* 'generate-report' => [GenerateReportHandler::class, 'handle'],
* ]
*/
'handlers' => [],
'middlewares-push' => [],
'middlewares-consume' => [],
'middlewares-fail' => [],
],
'yiisoft/yii-debug' => [
'collectors' => [
QueueCollector::class,
],
'trackedServices' => [
QueueProducerProviderInterface::class => [QueueProducerProviderProxy::class, QueueCollector::class],
QueueConsumerProviderInterface::class => [QueueConsumerProviderProxy::class, QueueCollector::class],
WorkerInterface::class => [QueueWorkerInterfaceProxy::class, QueueCollector::class],
],
],
];