diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-15 18:31:47 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-15 18:31:47 -0400 |
commit | 67b836164997527b91452b19adbcb8aa3c5decf1 (patch) | |
tree | b5876d311912e97b0592c7e208639f7b52813a75 /app/Controller/TaskImport.php | |
parent | 108e867605dbc7ece4cbcbecc89a674e9c154a9b (diff) |
Refactoring: added controlled middleware and changed response class
Diffstat (limited to 'app/Controller/TaskImport.php')
-rw-r--r-- | app/Controller/TaskImport.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Controller/TaskImport.php b/app/Controller/TaskImport.php index 460c608c..5dbf8678 100644 --- a/app/Controller/TaskImport.php +++ b/app/Controller/TaskImport.php @@ -10,11 +10,14 @@ use Kanboard\Core\Csv; * @package controller * @author Frederic Guillot */ -class TaskImport extends Base +class TaskImport extends BaseController { /** * Upload the file and ask settings * + * @param array $values + * @param array $errors + * @throws \Kanboard\Core\Controller\PageNotFoundException */ public function step1(array $values = array(), array $errors = array()) { @@ -66,7 +69,7 @@ class TaskImport extends Base */ public function template() { - $this->response->forceDownload('tasks.csv'); + $this->response->withDownload('tasks.csv'); $this->response->csv(array($this->taskImport->getColumnMapping())); } } |