fix: change namespaces
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user