summaryrefslogtreecommitdiff
path: root/app/Subscriber/TransitionSubscriber.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Subscriber/TransitionSubscriber.php')
-rw-r--r--app/Subscriber/TransitionSubscriber.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Subscriber/TransitionSubscriber.php b/app/Subscriber/TransitionSubscriber.php
index 35352dc7..df59aa72 100644
--- a/app/Subscriber/TransitionSubscriber.php
+++ b/app/Subscriber/TransitionSubscriber.php
@@ -6,17 +6,19 @@ use Kanboard\Event\TaskEvent;
use Kanboard\Model\Task;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-class TransitionSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface
+class TransitionSubscriber extends BaseSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return array(
- Task::EVENT_MOVE_COLUMN => array('execute', 0),
+ Task::EVENT_MOVE_COLUMN => 'execute',
);
}
public function execute(TaskEvent $event)
{
+ $this->logger->debug('Subscriber executed: '.__CLASS__.'::'.__METHOD__);
+
$user_id = $this->userSession->getId();
if (! empty($user_id)) {