[COMPONENT][PLUGIN] Move Email and XMPP notification handlers from components to plugins, so they can be disabled

This commit is contained in:
Hugo Sales 2020-08-05 20:47:28 +00:00 committed by Hugo Sales
parent 3fb45176b8
commit 86b9f7d7a1
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 16 additions and 5 deletions

View File

@ -23,19 +23,19 @@
* Handle email notifications * Handle email notifications
* *
* @package GNUsocial * @package GNUsocial
* @category Component * @category Plugin
* *
* @author Hugo Sales <hugo@fc.up.pt> * @author Hugo Sales <hugo@fc.up.pt>
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
namespace Component\Email; namespace Plugin\EmailNotifications;
use App\Core\Event; use App\Core\Event;
use App\Core\Module; use App\Core\Module;
class Email extends Module class EmailNotifications extends Module
{ {
public function onAddNotificationTransport(&$form_defs): bool public function onAddNotificationTransport(&$form_defs): bool
{ {

View File

@ -19,12 +19,23 @@
// }}} // }}}
namespace Component\XMPP; /**
* Handle xmpp notifications
*
* @package GNUsocial
* @category Plugin
*
* @author Hugo Sales <hugo@fc.up.pt>
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/
namespace Plugin\XMPPNotifications;
use App\Core\Event; use App\Core\Event;
use App\Core\Module; use App\Core\Module;
class XMPP extends Module class XMPPNotifications extends Module
{ {
public function onAddNotificationTransport(&$form_defs): bool public function onAddNotificationTransport(&$form_defs): bool
{ {