aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-05-06 04:45:35 +0300
committerValentin Popov <info@valentineus.link>2019-05-06 04:47:03 +0300
commiteb4b9b69f862df8ba23cafc8cd5e4a887baa02f0 (patch)
treee112a43f17173e02eada16b8d85ea4c4adc9cb4d /db
parentbde135499d1fe0ca67a1f50fea79848cbdb370ea (diff)
downloadlocal_webhooks-eb4b9b69f862df8ba23cafc8cd5e4a887baa02f0.tar.xz
local_webhooks-eb4b9b69f862df8ba23cafc8cd5e4a887baa02f0.zip
Added worked a class observer
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'db')
-rw-r--r--db/events.php13
1 files changed, 6 insertions, 7 deletions
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' <info@valentineus.link>
+ * @copyright 2019 'Valentin Popov' <info@valentineus.link>
* @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