summaryrefslogtreecommitdiff
path: root/app/Console
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-23 20:43:51 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-23 20:43:51 -0400
commit8314c99b56e66c2b86dd32432bcf5ed94a3ece02 (patch)
tree564ed1c270a0907efb5be8da1d971526cd235c6e /app/Console
parentdc6176fca23ea697380ab115aea976fa8271f047 (diff)
Added QueueManager to process background jobs
Diffstat (limited to 'app/Console')
-rw-r--r--app/Console/WorkerCommand.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/Console/WorkerCommand.php b/app/Console/WorkerCommand.php
new file mode 100644
index 00000000..e332624b
--- /dev/null
+++ b/app/Console/WorkerCommand.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace Kanboard\Console;
+
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+/**
+ * Class WorkerCommand
+ *
+ * @package Kanboard\Console
+ * @author Frederic Guillot
+ */
+class WorkerCommand extends BaseCommand
+{
+ protected function configure()
+ {
+ $this
+ ->setName('worker')
+ ->setDescription('Execute queue worker')
+ ;
+ }
+
+ protected function execute(InputInterface $input, OutputInterface $output)
+ {
+ $this->queueManager->listen();
+ }
+}