We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e311c1d commit a7d0801Copy full SHA for a7d0801
src/Queue/Commands/QueueWorkCommand.php
@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+namespace Leaf\Queue\Commands;
4
5
+use Aloe\Command;
6
7
+class QueueWorkCommand extends Command
8
+{
9
+ protected static $defaultName = 'queue:work';
10
+ public $description = 'Start your queue worker';
11
+ public $help = 'Start your queue worker';
12
13
+ protected function handle()
14
+ {
15
+ $this->writeln('Queue worker started for queue \'default\'...');
16
17
+ $queueConfig = MvcConfig('queue');
18
19
+ (new \Leaf\Worker())
20
+ ->queue($queueConfig['connections'][$queueConfig['default']])
21
+ ->run();
22
23
+ return 0;
24
+ }
25
+}
0 commit comments