summaryrefslogtreecommitdiff
path: root/app/Job
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
commit14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch)
tree79972d53f6091a1ddb17f64a6a05a5523f5d5168 /app/Job
parent936376ffe74c583d3cb819e98f53a85137fdf8bc (diff)
Rename all models
Diffstat (limited to 'app/Job')
-rw-r--r--app/Job/NotificationJob.php18
-rw-r--r--app/Job/ProjectMetricJob.php4
2 files changed, 11 insertions, 11 deletions
diff --git a/app/Job/NotificationJob.php b/app/Job/NotificationJob.php
index d5fce222..904a9273 100644
--- a/app/Job/NotificationJob.php
+++ b/app/Job/NotificationJob.php
@@ -39,10 +39,10 @@ class NotificationJob extends BaseJob
if (! empty($eventData)) {
if (! empty($event['mention'])) {
- $this->userNotification->sendUserNotification($event['mention'], $eventName, $eventData);
+ $this->userNotificationModel->sendUserNotification($event['mention'], $eventName, $eventData);
} else {
- $this->userNotification->sendNotifications($eventName, $eventData);
- $this->projectNotification->sendNotifications($eventData['task']['project_id'], $eventName, $eventData);
+ $this->userNotificationModel->sendNotifications($eventName, $eventData);
+ $this->projectNotificationModel->sendNotifications($eventData['task']['project_id'], $eventName, $eventData);
}
}
}
@@ -64,19 +64,19 @@ class NotificationJob extends BaseJob
switch ($eventObjectName) {
case 'Kanboard\Event\TaskEvent':
- $values['task'] = $this->taskFinder->getDetails($event['task_id']);
+ $values['task'] = $this->taskFinderModel->getDetails($event['task_id']);
break;
case 'Kanboard\Event\SubtaskEvent':
- $values['subtask'] = $this->subtask->getById($event['id'], true);
- $values['task'] = $this->taskFinder->getDetails($values['subtask']['task_id']);
+ $values['subtask'] = $this->subtaskModel->getById($event['id'], true);
+ $values['task'] = $this->taskFinderModel->getDetails($values['subtask']['task_id']);
break;
case 'Kanboard\Event\FileEvent':
$values['file'] = $event;
- $values['task'] = $this->taskFinder->getDetails($values['file']['task_id']);
+ $values['task'] = $this->taskFinderModel->getDetails($values['file']['task_id']);
break;
case 'Kanboard\Event\CommentEvent':
- $values['comment'] = $this->comment->getById($event['id']);
- $values['task'] = $this->taskFinder->getDetails($values['comment']['task_id']);
+ $values['comment'] = $this->commentModel->getById($event['id']);
+ $values['task'] = $this->taskFinderModel->getDetails($values['comment']['task_id']);
break;
}
diff --git a/app/Job/ProjectMetricJob.php b/app/Job/ProjectMetricJob.php
index 2c3e589c..6330bd4c 100644
--- a/app/Job/ProjectMetricJob.php
+++ b/app/Job/ProjectMetricJob.php
@@ -34,7 +34,7 @@ class ProjectMetricJob extends BaseJob
$this->logger->debug(__METHOD__.' Run project metrics calculation');
$now = date('Y-m-d');
- $this->projectDailyColumnStats->updateTotals($projectId, $now);
- $this->projectDailyStats->updateTotals($projectId, $now);
+ $this->projectDailyColumnStatsModel->updateTotals($projectId, $now);
+ $this->projectDailyStatsModel->updateTotals($projectId, $now);
}
}