Commit | Line | Data |
---|---|---|
40d5632a AS |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
41498ac5 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
40d5632a | 5 | | | |
41498ac5 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
40d5632a AS |
9 | +--------------------------------------------------------------------+ |
10 | */ | |
11 | ||
12 | namespace Civi\Core; | |
13 | ||
14 | use Civi\Core\Event\SystemInstallEvent; | |
15 | ||
16 | /** | |
17 | * Class DatabaseInitializer | |
18 | * @package Civi\Core | |
19 | */ | |
20 | class DatabaseInitializer { | |
21 | ||
22 | /** | |
23 | * Flush system to build the menu and MySQL triggers | |
24 | * | |
25 | * @param \Civi\Core\Event\SystemInstallEvent $event | |
26 | * @throws \CRM_Core_Exception | |
27 | */ | |
28 | public static function initialize(SystemInstallEvent $event) { | |
c64f69d9 | 29 | $api_params = [ |
40d5632a AS |
30 | 'version' => 3, |
31 | 'triggers' => 1, | |
32 | 'session' => 1, | |
c64f69d9 | 33 | ]; |
40d5632a AS |
34 | civicrm_api('System', 'flush', $api_params); |
35 | } | |
36 | ||
37 | } |