This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.php
48 lines (45 loc) · 1.61 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @author Evgeniy Tkachenko <et.coder@gmail.com>
*/
use humhub\modules\content\widgets\WallEntryLinks;
use humhub\modules\space\widgets\Menu;
use humhub\modules\stream\widgets\StreamViewer;
use humhub\widgets\TopMenu;
return [
'id' => 'tracker-issues',
'class' => 'tracker\Module',
'namespace' => 'tracker',
'events' => [
[
'class' => Menu::class,
'event' => Menu::EVENT_INIT,
'callback' => [\tracker\Events::class, 'onSpaceMenuInit'],
],
[
'class' => StreamViewer::class,
'event' => StreamViewer::EVENT_CREATE,
'callback' => [\tracker\Events::class, 'onStreamViewerCreate'],
],
[
'class' => \humhub\modules\space\controllers\SpaceController::class,
'event' => \humhub\modules\space\controllers\SpaceController::EVENT_BEFORE_ACTION,
'callback' => [\tracker\Events::class, 'onBeforeSpaceActions'],
],
[
'class' => \humhub\modules\user\controllers\ProfileController::class,
'event' => \humhub\modules\user\controllers\ProfileController::EVENT_BEFORE_ACTION,
'callback' => [\tracker\Events::class, 'onBeforeSpaceActions'],
],
[
'class' => TopMenu::class,
'event' => TopMenu::EVENT_INIT,
'callback' => [\tracker\Events::class, 'onTopMenuInit'],
],
[
'class' => WallEntryLinks::className(),
'event' => WallEntryLinks::EVENT_INIT,
'callback' => [\tracker\Events::class, 'onWallEntryAddonInit'],
],
],
];