-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.php
26 lines (23 loc) · 1.37 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
<?php
use humhub\modules\dashboard\widgets\Sidebar;
use humhub\modules\external_calendar\Events;
use humhub\commands\CronController;
use humhub\modules\external_calendar\Module;
use humhub\commands\IntegrityController;
use humhub\modules\calendar\interfaces\CalendarService;
use humhub\modules\content\widgets\WallEntryLinks;
return [
'id' => 'external_calendar',
'class' => Module::class,
'namespace' => 'humhub\modules\external_calendar',
'events' => [
['class' => Sidebar::class, 'event' => Sidebar::EVENT_INIT, 'callback' => [Module::class, 'onDashboardSidebarInit']],
['class' => CalendarService::class, 'event' => 'getItemTypes', 'callback' => [Events::class, 'onGetCalendarItemTypes']],
['class' => CalendarService::class, 'event' => 'findItems', 'callback' => [Events::class, 'onFindCalendarItems']],
['class' => CronController::class, 'event' => CronController::EVENT_ON_HOURLY_RUN, 'callback' => [Events::class, 'onCronHourlyRun']],
['class' => CronController::class, 'event' => CronController::EVENT_ON_DAILY_RUN, 'callback' => [Events::class, 'onCronDailyRun']],
['class' => IntegrityController::class, 'event' => IntegrityController::EVENT_ON_RUN, 'callback' => [Events::class, 'onIntegrityCheck']],
['class' => WallEntryLinks::class, 'event' => 'init', 'callback' => [Events::class, 'onWallEntryLinks']],
],
];
?>