Renaming an event

This commit is contained in:
Valentin Popov 2017-11-18 08:29:21 +04:00
parent 1e8cbe7f09
commit 29c12fa971
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ defined("MOODLE_INTERNAL") || die();
* @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 response_get extends \core\event\base { class response_answer extends \core\event\base {
/** /**
* Init method. * Init method.
*/ */

View File

@ -123,7 +123,7 @@ class handler {
$status = $response["HTTP/1.1"]; $status = $response["HTTP/1.1"];
} }
$event = \local_webhooks\event\response_get::create( $event = \local_webhooks\event\response_answer::create(
array( array(
"context" => \context_system::instance(0), "context" => \context_system::instance(0),
"objectid" => $callback->id, "objectid" => $callback->id,