-
Notifications
You must be signed in to change notification settings - Fork 0
/
hiorg.php
55 lines (49 loc) · 1.92 KB
/
hiorg.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
<?php
/*-------------------------------------------------------+
| SYSTOPIA HiOrg-Server API |
| Copyright (C) 2023 SYSTOPIA |
| Author: J. Schuppe (schuppe@systopia.de) |
+--------------------------------------------------------+
| This program is released as free software under the |
| Affero GPL license. You can redistribute it and/or |
| modify it under the terms of this license which you |
| can read by viewing the included agpl.txt or online |
| at www.gnu.org/licenses/agpl.html. Removal of this |
| copyright header is strictly prohibited without |
| written permission from the original author(s). |
+--------------------------------------------------------*/
require_once 'hiorg.civix.php';
// phpcs:disable
use Civi\Hiorg\EventSubscriber\ConfigProfiles\ConfigProfilesSubscriber;
use Civi\Hiorg\EventSubscriber\ContactSubscriber;
use Civi\Hiorg\EventSubscriber\IdentitytrackerSubscriber;
use Civi\Hiorg\EventSubscriber\OAuth\OAuthProviderSubscriber;
// phpcs:enable
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function hiorg_civicrm_config(&$config): void {
_hiorg_civix_civicrm_config($config);
Civi::dispatcher()->addSubscriber(new OAuthProviderSubscriber());
Civi::dispatcher()->addSubscriber(new ConfigProfilesSubscriber());
Civi::dispatcher()->addSubscriber(new IdentitytrackerSubscriber());
Civi::dispatcher()->addSubscriber(new ContactSubscriber());
}
/**
* Implements hook_civicrm_install().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
function hiorg_civicrm_install(): void {
_hiorg_civix_civicrm_install();
}
/**
* Implements hook_civicrm_enable().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
function hiorg_civicrm_enable(): void {
_hiorg_civix_civicrm_enable();
}