diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-04-12 21:26:17 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-04-12 21:26:17 -0400 |
commit | af7027ea31a691e2eea6d813f6aa3cf08f8b9d0a (patch) | |
tree | 8524395f06b30f812dca5cd68dd15fa09e3a2410 /app/Console/ProjectDailyStatsCalculation.php | |
parent | 2a74ed6e63b05627928e1dd6eeb67d824f4c1903 (diff) |
Rename CLI classes
Diffstat (limited to 'app/Console/ProjectDailyStatsCalculation.php')
-rw-r--r-- | app/Console/ProjectDailyStatsCalculation.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/app/Console/ProjectDailyStatsCalculation.php b/app/Console/ProjectDailyStatsCalculation.php deleted file mode 100644 index 9884cc1c..00000000 --- a/app/Console/ProjectDailyStatsCalculation.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -namespace Kanboard\Console; - -use Kanboard\Model\Project; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Output\OutputInterface; - -class ProjectDailyStatsCalculation extends Base -{ - protected function configure() - { - $this - ->setName('projects:daily-stats') - ->setDescription('Calculate daily statistics for all projects'); - } - - protected function execute(InputInterface $input, OutputInterface $output) - { - $projects = $this->project->getAllByStatus(Project::ACTIVE); - - foreach ($projects as $project) { - $output->writeln('Run calculation for '.$project['name']); - $this->projectDailyColumnStats->updateTotals($project['id'], date('Y-m-d')); - $this->projectDailyStats->updateTotals($project['id'], date('Y-m-d')); - } - } -} |