Rename the handler class
This commit is contained in:
parent
af6ac9fb22
commit
1160a52753
@ -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)) {
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user