diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-16 19:59:44 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-16 19:59:44 -0500 |
commit | 6a0895ef765ea7b83df02bb9789fda7415dee9a5 (patch) | |
tree | 2d8a2606b4ea1e1930cf368e04e87004e8b3e092 /app/Subscriber | |
parent | c603cb5949eba24fc09012e8f2684f33078ed713 (diff) |
Remove class TaskMovedDateSubscriber
Diffstat (limited to 'app/Subscriber')
-rw-r--r-- | app/Subscriber/TaskMovedDateSubscriber.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/app/Subscriber/TaskMovedDateSubscriber.php b/app/Subscriber/TaskMovedDateSubscriber.php deleted file mode 100644 index 9857f4b3..00000000 --- a/app/Subscriber/TaskMovedDateSubscriber.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -namespace Kanboard\Subscriber; - -use Kanboard\Event\TaskEvent; -use Kanboard\Model\Task; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; - -class TaskMovedDateSubscriber extends \Kanboard\Core\Base implements EventSubscriberInterface -{ - public static function getSubscribedEvents() - { - return array( - Task::EVENT_MOVE_COLUMN => array('execute', 0), - Task::EVENT_MOVE_SWIMLANE => array('execute', 0), - ); - } - - public function execute(TaskEvent $event) - { - if (isset($event['task_id'])) { - $this->container['db']->table(Task::TABLE)->eq('id', $event['task_id'])->update(array('date_moved' => time())); - } - } -} |