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>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class events {
|
||||
class handler {
|
||||
/**
|
||||
* External handler.
|
||||
*
|
||||
* @param object $event
|
||||
*/
|
||||
public static function handler($event) {
|
||||
public static function events($event) {
|
||||
$enable = get_config("local_webhooks", "enable");
|
||||
|
||||
if (boolval($enable)) {
|
@ -27,7 +27,7 @@ defined("MOODLE_INTERNAL") || die();
|
||||
$observers = array(
|
||||
array(
|
||||
"eventname" => "*",
|
||||
"callback" => "\local_webhooks\\events::handler",
|
||||
"callback" => "\local_webhooks\\handler::events",
|
||||
"includefile" => null,
|
||||
"priority" => 200,
|
||||
"internal" => true
|
||||
|
Loading…
x
Reference in New Issue
Block a user