summaryrefslogtreecommitdiff
path: root/app/Subscriber/SubtaskTimesheetSubscriber.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-07 18:36:16 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-07 18:36:16 -0500
commitfa6d19928abcfa03861e264222dbe46ad2fdc15a (patch)
tree598861577bba3a0a65e0bd47eecfb29f11f167ae /app/Subscriber/SubtaskTimesheetSubscriber.php
parentf83fc5bee4b93f1209bce14d1d7eaa50fdc6870b (diff)
Rename subtask model
Diffstat (limited to 'app/Subscriber/SubtaskTimesheetSubscriber.php')
-rw-r--r--app/Subscriber/SubtaskTimesheetSubscriber.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Subscriber/SubtaskTimesheetSubscriber.php b/app/Subscriber/SubtaskTimesheetSubscriber.php
index 687db80a..df10fc43 100644
--- a/app/Subscriber/SubtaskTimesheetSubscriber.php
+++ b/app/Subscriber/SubtaskTimesheetSubscriber.php
@@ -3,7 +3,7 @@
namespace Subscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-use Model\SubTask;
+use Model\Subtask;
use Event\SubtaskEvent;
class SubtaskTimesheetSubscriber extends Base implements EventSubscriberInterface
@@ -11,7 +11,7 @@ class SubtaskTimesheetSubscriber extends Base implements EventSubscriberInterfac
public static function getSubscribedEvents()
{
return array(
- SubTask::EVENT_UPDATE => array('log', 0),
+ Subtask::EVENT_UPDATE => array('log', 0),
);
}
@@ -19,9 +19,9 @@ class SubtaskTimesheetSubscriber extends Base implements EventSubscriberInterfac
{
if (isset($event['status'])) {
- $subtask = $this->subTask->getById($event['id']);
+ $subtask = $this->subtask->getById($event['id']);
- if ($subtask['status'] == SubTask::STATUS_INPROGRESS) {
+ if ($subtask['status'] == Subtask::STATUS_INPROGRESS) {
$this->subtaskTimeTracking->logStartTime($subtask['id'], $subtask['user_id']);
}
else {