summaryrefslogtreecommitdiff
path: root/app/Controller/ICalendarController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/ICalendarController.php')
-rw-r--r--app/Controller/ICalendarController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Controller/ICalendarController.php b/app/Controller/ICalendarController.php
index 78ea4d67..e354c6f1 100644
--- a/app/Controller/ICalendarController.php
+++ b/app/Controller/ICalendarController.php
@@ -8,7 +8,7 @@ use Kanboard\Filter\TaskAssigneeFilter;
use Kanboard\Filter\TaskProjectFilter;
use Kanboard\Filter\TaskStatusFilter;
use Kanboard\Formatter\TaskICalFormatter;
-use Kanboard\Model\Task as TaskModel;
+use Kanboard\Model\TaskModel;
use Eluceo\iCal\Component\Calendar as iCalendar;
/**
@@ -27,7 +27,7 @@ class ICalendarController extends BaseController
public function user()
{
$token = $this->request->getStringParam('token');
- $user = $this->user->getByToken($token);
+ $user = $this->userModel->getByToken($token);
// Token verification
if (empty($user)) {
@@ -37,7 +37,7 @@ class ICalendarController extends BaseController
// Common filter
$queryBuilder = new QueryBuilder();
$queryBuilder
- ->withQuery($this->taskFinder->getICalQuery())
+ ->withQuery($this->taskFinderModel->getICalQuery())
->withFilter(new TaskStatusFilter(TaskModel::STATUS_OPEN))
->withFilter(new TaskAssigneeFilter($user['id']));
@@ -58,7 +58,7 @@ class ICalendarController extends BaseController
public function project()
{
$token = $this->request->getStringParam('token');
- $project = $this->project->getByToken($token);
+ $project = $this->projectModel->getByToken($token);
// Token verification
if (empty($project)) {
@@ -68,7 +68,7 @@ class ICalendarController extends BaseController
// Common filter
$queryBuilder = new QueryBuilder();
$queryBuilder
- ->withQuery($this->taskFinder->getICalQuery())
+ ->withQuery($this->taskFinderModel->getICalQuery())
->withFilter(new TaskStatusFilter(TaskModel::STATUS_OPEN))
->withFilter(new TaskProjectFilter($project['id']));