-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
60 lines (58 loc) · 2.16 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
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* External Websites
* @link https://github.com/cuzy-app/external-websites
* @license https://github.com/cuzy-app/external-websites/blob/master/docs/LICENSE.md
* @author [Marc FARRE](https://marc.fun)
*/
use humhub\components\Controller;
use humhub\modules\content\components\ContentContainerController;
use humhub\modules\externalWebsites\Events;
use humhub\modules\space\widgets\HeaderControlsMenu;
use humhub\modules\space\widgets\Menu as SpaceMenu;
use humhub\modules\stream\models\WallStreamQuery;
use humhub\modules\stream\widgets\WallStreamFilterNavigation;
use humhub\modules\ui\view\components\View;
/** @noinspection MissedFieldInspection */
return [
'id' => 'external-websites',
'class' => 'humhub\modules\externalWebsites\Module',
'namespace' => 'humhub\modules\externalWebsites',
'events' => [
[
'class' => SpaceMenu::class,
'event' => SpaceMenu::EVENT_INIT,
'callback' => [Events::class, 'onSpaceMenuInit'],
],
[
'class' => WallStreamFilterNavigation::class,
'event' => WallStreamFilterNavigation::EVENT_BEFORE_RUN,
'callback' => [Events::class, 'onStreamFilterBeforeRun'],
],
[
'class' => WallStreamQuery::class,
'event' => WallStreamQuery::EVENT_BEFORE_FILTER,
'callback' => [Events::class, 'onStreamFilterBeforeFilter'],
],
[
'class' => HeaderControlsMenu::class,
'event' => HeaderControlsMenu::EVENT_INIT,
'callback' => [Events::class, 'onSpaceAdminMenuInit'],
],
[
'class' => View::class,
'event' => View::EVENT_BEGIN_BODY,
'callback' => [Events::class, 'onViewBeginBody'],
],
[
'class' => Controller::class,
'event' => Controller::EVENT_INIT,
'callback' => [Events::class, 'onControllerInit'],
],
[
'class' => ContentContainerController::class,
'event' => ContentContainerController::EVENT_BEFORE_ACTION,
'callback' => [Events::class, 'onContentContainerControllerBeforeAction'],
],
],
];