summaryrefslogtreecommitdiff
path: root/app/Controller/Webnotification.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-17 09:51:15 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-17 09:51:15 -0400
commit73a5b9bc75d40a30e7c9674b292957657ac01f63 (patch)
treeff5bb8a90452a2ff1351c192575e5d241a8b4417 /app/Controller/Webnotification.php
parent98b203fe691ec1ea9d6d19e916827185b575b05a (diff)
Make user notifications pluggable
Diffstat (limited to 'app/Controller/Webnotification.php')
-rw-r--r--app/Controller/Webnotification.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/app/Controller/Webnotification.php b/app/Controller/Webnotification.php
deleted file mode 100644
index 52e3f266..00000000
--- a/app/Controller/Webnotification.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace Kanboard\Controller;
-
-/**
- * Web notification controller
- *
- * @package controller
- * @author Frederic Guillot
- */
-class Webnotification extends Base
-{
- /**
- * Mark all notifications as read
- *
- * @access public
- */
- public function flush()
- {
- $user_id = $this->userSession->getId();
-
- $this->webNotification->markAllAsRead($user_id);
- $this->response->redirect($this->helper->url->to('app', 'notifications', array('user_id' => $user_id)));
- }
-
- /**
- * Mark a notification as read
- *
- * @access public
- */
- public function remove()
- {
- $user_id = $this->userSession->getId();
- $notification_id = $this->request->getIntegerParam('notification_id');
-
- $this->webNotification->markAsRead($user_id, $notification_id);
- $this->response->redirect($this->helper->url->to('app', 'notifications', array('user_id' => $user_id)));
- }
-}