From eb4b9b69f862df8ba23cafc8cd5e4a887baa02f0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 6 May 2019 05:45:35 +0400 Subject: Added worked a class observer Signed-off-by: Valentin Popov --- db/events.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'db/events.php') diff --git a/db/events.php b/db/events.php index 0fc9abb..5960797 100644 --- a/db/events.php +++ b/db/events.php @@ -17,16 +17,15 @@ /** * Registration of observers for events. * - * @copyright 2018 'Valentin Popov' + * @copyright 2019 'Valentin Popov' * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - * @package local_webhooks */ defined('MOODLE_INTERNAL') || die(); -$observers = array( - array( - 'callback' => '\local_webhooks\event_observer::observe_all', +$observers = [ + [ + 'callback' => '\local_webhooks\event\observer::handler', 'eventname' => '*', - ), -); \ No newline at end of file + ], +]; \ No newline at end of file -- cgit v1.2.3