forked from humhub/fcm-push
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
30 lines (26 loc) · 1.29 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
<?php
/** @noinspection MissedFieldInspection */
use humhub\modules\fcmPush\Events;
use humhub\components\Controller;
//use humhub\modules\notification\widgets\NotificationInfoWidget;
use humhub\widgets\LayoutAddons;
use yii\base\Application;
use humhub\modules\user\components\User;
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_LOGOUT, [Events::class, 'onAfterLogout']],
[User::class, User::EVENT_AFTER_LOGIN, [Events::class, 'onAfterLogin']]
//[NotificationInfoWidget::class, \humhub\widgets\BaseStack::EVENT_RUN, [Events::class, 'onNotificationInfoWidget']]
],
'consoleControllerMap' => [
'firebase' => 'humhub\modules\fcmPush\commands\SendController'
],
];
?>