summaryrefslogtreecommitdiff
path: root/app/Console/Cronjob.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-04-12 21:26:17 -0400
committerFrederic Guillot <fred@kanboard.net>2016-04-12 21:26:17 -0400
commitaf7027ea31a691e2eea6d813f6aa3cf08f8b9d0a (patch)
tree8524395f06b30f812dca5cd68dd15fa09e3a2410 /app/Console/Cronjob.php
parent2a74ed6e63b05627928e1dd6eeb67d824f4c1903 (diff)
Rename CLI classes
Diffstat (limited to 'app/Console/Cronjob.php')
-rw-r--r--app/Console/Cronjob.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/Console/Cronjob.php b/app/Console/Cronjob.php
deleted file mode 100644
index 3a5c5596..00000000
--- a/app/Console/Cronjob.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-namespace Kanboard\Console;
-
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Output\NullOutput;
-
-class Cronjob extends Base
-{
- private $commands = array(
- 'projects:daily-stats',
- 'notification:overdue-tasks',
- 'trigger:tasks',
- );
-
- protected function configure()
- {
- $this
- ->setName('cronjob')
- ->setDescription('Execute daily cronjob');
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- foreach ($this->commands as $command) {
- $job = $this->getApplication()->find($command);
- $job->run(new ArrayInput(array('command' => $command)), new NullOutput());
- }
- }
-}