summaryrefslogtreecommitdiff
path: root/app/Subscriber/NotificationSubscriber.php
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/Subscriber/NotificationSubscriber.php
parent7bfa38d93c7342fc5dc04722e7bc282f165b8cd4 (diff)
Change namespace to add Kanboard as prefix
Diffstat (limited to 'app/Subscriber/NotificationSubscriber.php')
-rw-r--r--app/Subscriber/NotificationSubscriber.php22
1 files changed, 11 insertions, 11 deletions
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;