diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-13 22:19:17 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-13 22:19:17 -0400 |
commit | 9c9ed02cd7ebc5dbbc99bcaed6f80988ce8a9677 (patch) | |
tree | c58789631d8f729dca8dbbf4108670e567dc25b4 /app/Subscriber | |
parent | 7bfa38d93c7342fc5dc04722e7bc282f165b8cd4 (diff) |
Change namespace to add Kanboard as prefix
Diffstat (limited to 'app/Subscriber')
-rw-r--r-- | app/Subscriber/AuthSubscriber.php | 8 | ||||
-rw-r--r-- | app/Subscriber/BootstrapSubscriber.php | 4 | ||||
-rw-r--r-- | app/Subscriber/NotificationSubscriber.php | 22 | ||||
-rw-r--r-- | app/Subscriber/ProjectActivitySubscriber.php | 12 | ||||
-rw-r--r-- | app/Subscriber/ProjectDailySummarySubscriber.php | 8 | ||||
-rw-r--r-- | app/Subscriber/ProjectModificationDateSubscriber.php | 8 | ||||
-rw-r--r-- | app/Subscriber/RecurringTaskSubscriber.php | 8 | ||||
-rw-r--r-- | app/Subscriber/SubtaskTimeTrackingSubscriber.php | 8 | ||||
-rw-r--r-- | app/Subscriber/TaskMovedDateSubscriber.php | 8 | ||||
-rw-r--r-- | app/Subscriber/TransitionSubscriber.php | 8 | ||||
-rw-r--r-- | app/Subscriber/WebhookSubscriber.php | 18 |
11 files changed, 56 insertions, 56 deletions
diff --git a/app/Subscriber/AuthSubscriber.php b/app/Subscriber/AuthSubscriber.php index b814057f..2461b52c 100644 --- a/app/Subscriber/AuthSubscriber.php +++ b/app/Subscriber/AuthSubscriber.php @@ -1,12 +1,12 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Core\Request; -use Event\AuthEvent; +use Kanboard\Core\Request; +use Kanboard\Event\AuthEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class AuthSubscriber extends \Core\Base implements EventSubscriberInterface +class AuthSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/BootstrapSubscriber.php b/app/Subscriber/BootstrapSubscriber.php index 793ba3e7..25b919f7 100644 --- a/app/Subscriber/BootstrapSubscriber.php +++ b/app/Subscriber/BootstrapSubscriber.php @@ -1,10 +1,10 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class BootstrapSubscriber extends \Core\Base implements EventSubscriberInterface +class BootstrapSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/NotificationSubscriber.php b/app/Subscriber/NotificationSubscriber.php index b99c2945..610fbadb 100644 --- a/app/Subscriber/NotificationSubscriber.php +++ b/app/Subscriber/NotificationSubscriber.php @@ -1,15 +1,15 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\GenericEvent; -use Model\Task; -use Model\Comment; -use Model\Subtask; -use Model\File; +use Kanboard\Event\GenericEvent; +use Kanboard\Model\Task; +use Kanboard\Model\Comment; +use Kanboard\Model\Subtask; +use Kanboard\Model\File; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class NotificationSubscriber extends \Core\Base implements EventSubscriberInterface +class NotificationSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { @@ -40,19 +40,19 @@ class NotificationSubscriber extends \Core\Base implements EventSubscriberInterf $values = array(); switch (get_class($event)) { - case 'Event\TaskEvent': + case 'Kanboard\Event\TaskEvent': $values['task'] = $this->taskFinder->getDetails($event['task_id']); $values['changes'] = isset($event['changes']) ? $event['changes'] : array(); break; - case 'Event\SubtaskEvent': + case 'Kanboard\Event\SubtaskEvent': $values['subtask'] = $this->subtask->getById($event['id'], true); $values['task'] = $this->taskFinder->getDetails($values['subtask']['task_id']); break; - case 'Event\FileEvent': + case 'Kanboard\Event\FileEvent': $values['file'] = $event->getAll(); $values['task'] = $this->taskFinder->getDetails($values['file']['task_id']); break; - case 'Event\CommentEvent': + case 'Kanboard\Event\CommentEvent': $values['comment'] = $this->comment->getById($event['id']); $values['task'] = $this->taskFinder->getDetails($values['comment']['task_id']); break; diff --git a/app/Subscriber/ProjectActivitySubscriber.php b/app/Subscriber/ProjectActivitySubscriber.php index 82b13d8e..f8d5d150 100644 --- a/app/Subscriber/ProjectActivitySubscriber.php +++ b/app/Subscriber/ProjectActivitySubscriber.php @@ -1,14 +1,14 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\GenericEvent; -use Model\Task; -use Model\Comment; -use Model\Subtask; +use Kanboard\Event\GenericEvent; +use Kanboard\Model\Task; +use Kanboard\Model\Comment; +use Kanboard\Model\Subtask; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class ProjectActivitySubscriber extends \Core\Base implements EventSubscriberInterface +class ProjectActivitySubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/ProjectDailySummarySubscriber.php b/app/Subscriber/ProjectDailySummarySubscriber.php index db180dea..bfa6cd42 100644 --- a/app/Subscriber/ProjectDailySummarySubscriber.php +++ b/app/Subscriber/ProjectDailySummarySubscriber.php @@ -1,12 +1,12 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\TaskEvent; -use Model\Task; +use Kanboard\Event\TaskEvent; +use Kanboard\Model\Task; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class ProjectDailySummarySubscriber extends \Core\Base implements EventSubscriberInterface +class ProjectDailySummarySubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/ProjectModificationDateSubscriber.php b/app/Subscriber/ProjectModificationDateSubscriber.php index 2c01173b..1f99840d 100644 --- a/app/Subscriber/ProjectModificationDateSubscriber.php +++ b/app/Subscriber/ProjectModificationDateSubscriber.php @@ -1,12 +1,12 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\GenericEvent; -use Model\Task; +use Kanboard\Event\GenericEvent; +use Kanboard\Model\Task; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class ProjectModificationDateSubscriber extends \Core\Base implements EventSubscriberInterface +class ProjectModificationDateSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/RecurringTaskSubscriber.php b/app/Subscriber/RecurringTaskSubscriber.php index 68d704f0..793233c6 100644 --- a/app/Subscriber/RecurringTaskSubscriber.php +++ b/app/Subscriber/RecurringTaskSubscriber.php @@ -1,12 +1,12 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\TaskEvent; -use Model\Task; +use Kanboard\Event\TaskEvent; +use Kanboard\Model\Task; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class RecurringTaskSubscriber extends \Core\Base implements EventSubscriberInterface +class RecurringTaskSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/SubtaskTimeTrackingSubscriber.php b/app/Subscriber/SubtaskTimeTrackingSubscriber.php index 2d3b5f99..bb522b2e 100644 --- a/app/Subscriber/SubtaskTimeTrackingSubscriber.php +++ b/app/Subscriber/SubtaskTimeTrackingSubscriber.php @@ -1,12 +1,12 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -use Model\Subtask; -use Event\SubtaskEvent; +use Kanboard\Model\Subtask; +use Kanboard\Event\SubtaskEvent; -class SubtaskTimeTrackingSubscriber extends \Core\Base implements EventSubscriberInterface +class SubtaskTimeTrackingSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/TaskMovedDateSubscriber.php b/app/Subscriber/TaskMovedDateSubscriber.php index 16a75c19..9857f4b3 100644 --- a/app/Subscriber/TaskMovedDateSubscriber.php +++ b/app/Subscriber/TaskMovedDateSubscriber.php @@ -1,12 +1,12 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\TaskEvent; -use Model\Task; +use Kanboard\Event\TaskEvent; +use Kanboard\Model\Task; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class TaskMovedDateSubscriber extends \Core\Base implements EventSubscriberInterface +class TaskMovedDateSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/TransitionSubscriber.php b/app/Subscriber/TransitionSubscriber.php index 5804dab7..f14590f7 100644 --- a/app/Subscriber/TransitionSubscriber.php +++ b/app/Subscriber/TransitionSubscriber.php @@ -1,12 +1,12 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\TaskEvent; -use Model\Task; +use Kanboard\Event\TaskEvent; +use Kanboard\Model\Task; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class TransitionSubscriber extends \Core\Base implements EventSubscriberInterface +class TransitionSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/app/Subscriber/WebhookSubscriber.php b/app/Subscriber/WebhookSubscriber.php index 5176a7ff..8a2bd080 100644 --- a/app/Subscriber/WebhookSubscriber.php +++ b/app/Subscriber/WebhookSubscriber.php @@ -1,17 +1,17 @@ <?php -namespace Subscriber; +namespace Kanboard\Subscriber; -use Event\CommentEvent; -use Event\GenericEvent; -use Event\TaskEvent; -use Model\Comment; -use Model\Task; -use Model\File; -use Model\Subtask; +use Kanboard\Event\CommentEvent; +use Kanboard\Event\GenericEvent; +use Kanboard\Event\TaskEvent; +use Kanboard\Model\Comment; +use Kanboard\Model\Task; +use Kanboard\Model\File; +use Kanboard\Model\Subtask; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -class WebhookSubscriber extends \Core\Base implements EventSubscriberInterface +class WebhookSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { |