From 64cbe2a57d24e145ea64a1ba000cd44f5071f06e Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 30 Oct 2013 19:16:51 +0100 Subject: [PATCH] Remove user comments in root controllers --- .../Phrasea/Controller/User/Notifications.php | 26 ------------------- .../Phrasea/Controller/User/Preferences.php | 26 ------------------- 2 files changed, 52 deletions(-) diff --git a/lib/Alchemy/Phrasea/Controller/User/Notifications.php b/lib/Alchemy/Phrasea/Controller/User/Notifications.php index 152e523bb6..746ed7119b 100644 --- a/lib/Alchemy/Phrasea/Controller/User/Notifications.php +++ b/lib/Alchemy/Phrasea/Controller/User/Notifications.php @@ -32,35 +32,9 @@ class Notifications implements ControllerProviderInterface $app['firewall']->requireNotGuest(); }); - /** - * Read all notifications - * - * name : read_notifications_full - * - * description : Read full notification - * - * method : GET - * - * parameters : none - * - * return : JSON Response - */ $controllers->get('/', 'controller.user.notifications:listNotifications') ->bind('get_notifications'); - /** - * Set notifications as readed - * - * name : set_notifications_readed - * - * description : Set notifications as readed - * - * method : POST - * - * parameters : none - * - * return : JSON Response - */ $controllers->post('/read/', 'controller.user.notifications:readNotifications') ->bind('set_notifications_readed'); diff --git a/lib/Alchemy/Phrasea/Controller/User/Preferences.php b/lib/Alchemy/Phrasea/Controller/User/Preferences.php index 4435913203..44d2b9ecd4 100644 --- a/lib/Alchemy/Phrasea/Controller/User/Preferences.php +++ b/lib/Alchemy/Phrasea/Controller/User/Preferences.php @@ -32,35 +32,9 @@ class Preferences implements ControllerProviderInterface $app['firewall']->requireAuthentication(); }); - /** - * Save preferences - * - * name : save_pref - * - * description : Save User preferences - * - * method : POST - * - * parameters : none - * - * return : JSON Response - */ $controllers->post('/', 'controller.user.preferences:saveUserPref') ->bind('save_pref'); - /** - * Save temporary preferences - * - * name : save_temp_pref - * - * description : Save temporary preferences - * - * method : POST - * - * parameters : none - * - * return : JSON Response - */ $controllers->post('/temporary/', 'controller.user.preferences:saveTemporaryPref') ->bind('save_temp_pref');