Rename the handler class

This commit is contained in:
Valentin Popov 2017-10-27 08:51:27 +04:00
parent af6ac9fb22
commit 1160a52753
2 changed files with 3 additions and 3 deletions

View File

@ -36,13 +36,13 @@ use curl;
* @copyright 2017 "Valentin Popov" <info@valentineus.link> * @copyright 2017 "Valentin Popov" <info@valentineus.link>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
class events { class handler {
/** /**
* External handler. * External handler.
* *
* @param object $event * @param object $event
*/ */
public static function handler($event) { public static function events($event) {
$enable = get_config("local_webhooks", "enable"); $enable = get_config("local_webhooks", "enable");
if (boolval($enable)) { if (boolval($enable)) {

View File

@ -27,7 +27,7 @@ defined("MOODLE_INTERNAL") || die();
$observers = array( $observers = array(
array( array(
"eventname" => "*", "eventname" => "*",
"callback" => "\local_webhooks\\events::handler", "callback" => "\local_webhooks\\handler::events",
"includefile" => null, "includefile" => null,
"priority" => 200, "priority" => 200,
"internal" => true "internal" => true