-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.php
37 lines (32 loc) · 1.68 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
<?php
/** @noinspection MissedFieldInspection */
use humhub\components\Controller;
use humhub\modules\fcmPush\Events;
use humhub\modules\user\components\User;
use humhub\modules\user\widgets\AccountTopMenu;
use humhub\modules\user\widgets\AuthChoice;
use humhub\widgets\LayoutAddons;
use yii\base\Application;
//use humhub\modules\notification\widgets\NotificationInfoWidget;
return [
'id' => 'fcm-push',
'class' => 'humhub\modules\fcmPush\Module',
'namespace' => 'humhub\modules\fcmPush',
'events' => [
['humhub\modules\web\pwa\controllers\ManifestController', Controller::EVENT_INIT, [Events::class, 'onManifestControllerInit']],
['humhub\modules\web\pwa\controllers\ServiceWorkerController', Controller::EVENT_INIT, [Events::class, 'onServiceWorkerControllerInit']],
[LayoutAddons::class, LayoutAddons::EVENT_INIT, [Events::class, 'onLayoutAddonInit']],
[Application::class, Application::EVENT_BEFORE_REQUEST, [Events::class, 'onBeforeRequest']],
[User::class, User::EVENT_AFTER_LOGIN, [Events::class, 'onAfterLogin']],
[User::class, User::EVENT_AFTER_LOGOUT, [Events::class, 'onAfterLogout']],
[AuthChoice::class, AuthChoice::EVENT_BEFORE_RUN, [Events::class, 'onAuthChoiceBeforeRun']],
//[NotificationInfoWidget::class, \humhub\widgets\BaseStack::EVENT_RUN, [Events::class, 'onNotificationInfoWidget']],
[AccountTopMenu::class, AccountTopMenu::EVENT_INIT, [Events::class, 'onAccountTopMenuInit']],
],
'consoleControllerMap' => [
'firebase' => 'humhub\modules\fcmPush\commands\SendController',
],
'urlManagerRules' => [
['class' => 'humhub\modules\fcmPush\components\UrlRule'],
],
];