fix: change namespaces

This commit is contained in:
2018-11-25 18:41:20 -06:00
parent 98b67855ca
commit 4d96cc4e8c
6 changed files with 36 additions and 76 deletions

View File

@@ -1,11 +1,10 @@
<?php
namespace Aerex\TaskwarriorPlugin;
namespace Aerex\TaskwarriorPlugin\Taskwarrior;
use Aerex\TaskwarriorPlugin\Taskwarrior;
use Aerex\TaskwarriorPlugin\Taskwarrior\Taskwarrior;
use Aerex\TaskwarriorPlugin\Taskwarrior\Task;
use Sabre\VObject\Component\VTodo;
use DavidBadura\Taskwarrior\TaskManager;
use DavidBadura\Taskwarrior\Task;
class TaskwarriorManager {
@@ -22,7 +21,11 @@ class TaskwarriorManager {
const END = 'end';
public function __construct($taskwarrior){
parent::__construct($taskwarrior);
if(!isset($taskwarrior)){
$this->taskwarrior = new Taskwarrior();
} else {
$this->taskwarrior = $taskwarrior;
}
}
public function createTask($UUID){
@@ -156,3 +159,4 @@ class TaskwarriorManager {
}
?>