forked from GNUsocial/gnu-social
[COMPONENT][PLUGIN] Move Email and XMPP notification handlers from components to plugins, so they can be disabled
This commit is contained in:
parent
3fb45176b8
commit
86b9f7d7a1
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
Loading…
Reference in New Issue
Block a user