-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcli.global.php
More file actions
32 lines (29 loc) · 1.09 KB
/
cli.global.php
File metadata and controls
32 lines (29 loc) · 1.09 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
<?php
declare(strict_types=1);
use Dot\Cli\FileLockerInterface;
use Queue\Swoole\Command\GetFailedMessagesCommand;
use Queue\Swoole\Command\GetProcessedMessagesCommand;
use Queue\Swoole\Command\GetQueuedMessagesCommand;
use Queue\Swoole\Command\StartCommand;
use Queue\Swoole\Command\StopCommand;
use Symfony\Component\Messenger\Command\ConsumeMessagesCommand;
use Symfony\Component\Messenger\Command\DebugCommand;
return [
'dot_cli' => [
'version' => '1.0.0',
'name' => 'DotKernel CLI',
'commands' => [
'swoole:start' => StartCommand::class,
'swoole:stop' => StopCommand::class,
'messenger:start' => ConsumeMessagesCommand::class,
'messenger:debug' => DebugCommand::class,
'processed' => GetProcessedMessagesCommand::class,
'failed' => GetFailedMessagesCommand::class,
'inventory' => GetQueuedMessagesCommand::class,
],
],
FileLockerInterface::class => [
'enabled' => false,
'dirPath' => getcwd() . '/data/lock',
],
];