Repository navigation
Expand file tree
/
Copy pathconfig.php
More file actions
32 lines (27 loc) · 1.43 KB
/
Copy pathconfig.php
File metadata and controls
32 lines (27 loc) · 1.43 KB
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
<?php
/** @noinspection MissedFieldInspection */
use humhub\components\Controller;
use humhub\modules\fcmPush\Events;
use humhub\modules\notification\events\UnreadCountChangedEvent;
use humhub\modules\notification\widgets\NotificationSettingsForm;
use humhub\modules\user\components\User;
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\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']],
[NotificationSettingsForm::class, NotificationSettingsForm::EVENT_AFTER_RUN, [Events::class, 'onNotificationSettingsFormAfterRun']],
[UnreadCountChangedEvent::class, UnreadCountChangedEvent::EVENT_UNREAD_COUNT_CHANGED, [Events::class, 'onUnreadCountChanged']],
],
'consoleControllerMap' => [
'firebase' => 'humhub\modules\fcmPush\commands\SendController',
],
];