summaryrefslogtreecommitdiff
path: root/app/Controller/ICalendarController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-20 20:06:39 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-20 20:06:39 -0500
commitae708a712a5dd932c01e734f8450b899b1407a70 (patch)
tree348c01ad849fbeeee0fba74118b4536af4119333 /app/Controller/ICalendarController.php
parenta957195952e2c93177628ab07936d783da1388c3 (diff)
Offer the possibility to override internal formatter objects from plugins
Diffstat (limited to 'app/Controller/ICalendarController.php')
-rw-r--r--app/Controller/ICalendarController.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/Controller/ICalendarController.php b/app/Controller/ICalendarController.php
index e354c6f1..4fe8b78a 100644
--- a/app/Controller/ICalendarController.php
+++ b/app/Controller/ICalendarController.php
@@ -7,7 +7,6 @@ use Kanboard\Core\Filter\QueryBuilder;
use Kanboard\Filter\TaskAssigneeFilter;
use Kanboard\Filter\TaskProjectFilter;
use Kanboard\Filter\TaskStatusFilter;
-use Kanboard\Formatter\TaskICalFormatter;
use Kanboard\Model\TaskModel;
use Eluceo\iCal\Component\Calendar as iCalendar;
@@ -94,8 +93,6 @@ class ICalendarController extends BaseController
$end = $this->request->getStringParam('end', strtotime('+6 months'));
$this->helper->ical->addTaskDateDueEvents($queryBuilder, $calendar, $start, $end);
-
- $formatter = new TaskICalFormatter($this->container);
- $this->response->ical($formatter->setCalendar($calendar)->format());
+ $this->response->ical($this->taskICalFormatter->setCalendar($calendar)->format());
}
}