André Menrath
970f3e7754
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Failing after 48s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m7s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Failing after 56s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 55s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 55s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 55s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Failing after 54s
and phpcs
36 lines
962 B
PHP
36 lines
962 B
PHP
<?php
|
|
/**
|
|
* Class responsible for registering handlers for incoming activities to the ActivityPub plugin.
|
|
*
|
|
* @package Event_Bridge_For_ActivityPub
|
|
* @since 1.0.0
|
|
* @license AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace Event_Bridge_For_ActivityPub\ActivityPub;
|
|
|
|
// Exit if accessed directly.
|
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
|
|
|
use Event_Bridge_For_ActivityPub\ActivityPub\Handler\Accept;
|
|
use Event_Bridge_For_ActivityPub\ActivityPub\Handler\Announce;
|
|
use Event_Bridge_For_ActivityPub\ActivityPub\Handler\Update;
|
|
use Event_Bridge_For_ActivityPub\ActivityPub\Handler\Create;
|
|
use Event_Bridge_For_ActivityPub\ActivityPub\Handler\Delete;
|
|
|
|
/**
|
|
* Class responsible for registering handlers for incoming activities to the ActivityPub plugin.
|
|
*/
|
|
class Handler {
|
|
/**
|
|
* Register all ActivityPub handlers.
|
|
*/
|
|
public static function register_handlers() {
|
|
|
|
Accept::init();
|
|
Announce::init();
|
|
Update::init();
|
|
Create::init();
|
|
Delete::init();
|
|
}
|
|
}
|