summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
commit9c9ed02cd7ebc5dbbc99bcaed6f80988ce8a9677 (patch)
treec58789631d8f729dca8dbbf4108670e567dc25b4 /app/Api
parent7bfa38d93c7342fc5dc04722e7bc282f165b8cd4 (diff)
Change namespace to add Kanboard as prefix
Diffstat (limited to 'app/Api')
-rw-r--r--app/Api/Action.php4
-rw-r--r--app/Api/App.php4
-rw-r--r--app/Api/Auth.php2
-rw-r--r--app/Api/Base.php4
-rw-r--r--app/Api/Board.php2
-rw-r--r--app/Api/Category.php4
-rw-r--r--app/Api/Comment.php4
-rw-r--r--app/Api/File.php6
-rw-r--r--app/Api/Link.php4
-rw-r--r--app/Api/Me.php6
-rw-r--r--app/Api/Project.php2
-rw-r--r--app/Api/ProjectPermission.php4
-rw-r--r--app/Api/Subtask.php4
-rw-r--r--app/Api/Swimlane.php4
-rw-r--r--app/Api/Task.php6
-rw-r--r--app/Api/TaskLink.php4
-rw-r--r--app/Api/User.php6
17 files changed, 35 insertions, 35 deletions
diff --git a/app/Api/Action.php b/app/Api/Action.php
index a67e915c..eab20a6c 100644
--- a/app/Api/Action.php
+++ b/app/Api/Action.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Action API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class Action extends \Core\Base
+class Action extends \Kanboard\Core\Base
{
public function getAvailableActions()
{
diff --git a/app/Api/App.php b/app/Api/App.php
index 9b3ceb94..d082bcfb 100644
--- a/app/Api/App.php
+++ b/app/Api/App.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* App API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class App extends \Core\Base
+class App extends \Kanboard\Core\Base
{
public function getTimezone()
{
diff --git a/app/Api/Auth.php b/app/Api/Auth.php
index 18fe9ff9..b741694b 100644
--- a/app/Api/Auth.php
+++ b/app/Api/Auth.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
use JsonRPC\AuthenticationFailure;
use Symfony\Component\EventDispatcher\Event;
diff --git a/app/Api/Base.php b/app/Api/Base.php
index 0287e0ec..152ceeab 100644
--- a/app/Api/Base.php
+++ b/app/Api/Base.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
use JsonRPC\AuthenticationFailure;
use JsonRPC\AccessDeniedException;
@@ -11,7 +11,7 @@ use JsonRPC\AccessDeniedException;
* @package api
* @author Frederic Guillot
*/
-abstract class Base extends \Core\Base
+abstract class Base extends \Kanboard\Core\Base
{
private $user_allowed_procedures = array(
'getMe',
diff --git a/app/Api/Board.php b/app/Api/Board.php
index 93b99cce..d615b1dc 100644
--- a/app/Api/Board.php
+++ b/app/Api/Board.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Board API controller
diff --git a/app/Api/Category.php b/app/Api/Category.php
index ad3c5ef9..3e5b3a34 100644
--- a/app/Api/Category.php
+++ b/app/Api/Category.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Category API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class Category extends \Core\Base
+class Category extends \Kanboard\Core\Base
{
public function getCategory($category_id)
{
diff --git a/app/Api/Comment.php b/app/Api/Comment.php
index e40968b9..a13c36d4 100644
--- a/app/Api/Comment.php
+++ b/app/Api/Comment.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Comment API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class Comment extends \Core\Base
+class Comment extends \Kanboard\Core\Base
{
public function getComment($comment_id)
{
diff --git a/app/Api/File.php b/app/Api/File.php
index ad736ad4..760ee5ed 100644
--- a/app/Api/File.php
+++ b/app/Api/File.php
@@ -1,8 +1,8 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
-use Core\ObjectStorage\ObjectStorageException;
+use Kanboard\Core\ObjectStorage\ObjectStorageException;
/**
* File API controller
@@ -10,7 +10,7 @@ use Core\ObjectStorage\ObjectStorageException;
* @package api
* @author Frederic Guillot
*/
-class File extends \Core\Base
+class File extends \Kanboard\Core\Base
{
public function getFile($file_id)
{
diff --git a/app/Api/Link.php b/app/Api/Link.php
index d883013d..049fcddb 100644
--- a/app/Api/Link.php
+++ b/app/Api/Link.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Link API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class Link extends \Core\Base
+class Link extends \Kanboard\Core\Base
{
/**
* Get a link by id
diff --git a/app/Api/Me.php b/app/Api/Me.php
index e7611554..f4857b58 100644
--- a/app/Api/Me.php
+++ b/app/Api/Me.php
@@ -1,9 +1,9 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
-use Model\Subtask as SubtaskModel;
-use Model\Task as TaskModel;
+use Kanboard\Model\Subtask as SubtaskModel;
+use Kanboard\Model\Task as TaskModel;
/**
* Me API controller
diff --git a/app/Api/Project.php b/app/Api/Project.php
index 8ed382cb..4c491ced 100644
--- a/app/Api/Project.php
+++ b/app/Api/Project.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Project API controller
diff --git a/app/Api/ProjectPermission.php b/app/Api/ProjectPermission.php
index 7dd2dec6..80323395 100644
--- a/app/Api/ProjectPermission.php
+++ b/app/Api/ProjectPermission.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* ProjectPermission API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class ProjectPermission extends \Core\Base
+class ProjectPermission extends \Kanboard\Core\Base
{
public function getMembers($project_id)
{
diff --git a/app/Api/Subtask.php b/app/Api/Subtask.php
index 2b8e7a1f..7b526023 100644
--- a/app/Api/Subtask.php
+++ b/app/Api/Subtask.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Subtask API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class Subtask extends \Core\Base
+class Subtask extends \Kanboard\Core\Base
{
public function getSubtask($subtask_id)
{
diff --git a/app/Api/Swimlane.php b/app/Api/Swimlane.php
index 13838d77..84c699ab 100644
--- a/app/Api/Swimlane.php
+++ b/app/Api/Swimlane.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* Swimlane API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class Swimlane extends \Core\Base
+class Swimlane extends \Kanboard\Core\Base
{
public function getActiveSwimlanes($project_id)
{
diff --git a/app/Api/Task.php b/app/Api/Task.php
index 23a8c5bf..8911c2f1 100644
--- a/app/Api/Task.php
+++ b/app/Api/Task.php
@@ -1,8 +1,8 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
-use Model\Task as TaskModel;
+use Kanboard\Model\Task as TaskModel;
/**
* Task API controller
@@ -34,7 +34,7 @@ class Task extends Base
{
return $this->taskFinder->getOverdueTasks();
}
-
+
public function getOverdueTasksByProject($project_id)
{
$this->checkProjectPermission($project_id);
diff --git a/app/Api/TaskLink.php b/app/Api/TaskLink.php
index 6b23d051..47d70d1e 100644
--- a/app/Api/TaskLink.php
+++ b/app/Api/TaskLink.php
@@ -1,6 +1,6 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
/**
* TaskLink API controller
@@ -8,7 +8,7 @@ namespace Api;
* @package api
* @author Frederic Guillot
*/
-class TaskLink extends \Core\Base
+class TaskLink extends \Kanboard\Core\Base
{
/**
* Get a task link
diff --git a/app/Api/User.php b/app/Api/User.php
index 4884c45c..00d35796 100644
--- a/app/Api/User.php
+++ b/app/Api/User.php
@@ -1,8 +1,8 @@
<?php
-namespace Api;
+namespace Kanboard\Api;
-use Auth\Ldap;
+use Kanboard\Auth\Ldap;
/**
* User API controller
@@ -10,7 +10,7 @@ use Auth\Ldap;
* @package api
* @author Frederic Guillot
*/
-class User extends \Core\Base
+class User extends \Kanboard\Core\Base
{
public function getUser($user_id)
{