[NFC] Fix tests in prepartion for phpunit7
[civicrm-core.git] / Civi / Core / DatabaseInitializer.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 |
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) {
29 $api_params = [
30 'version' => 3,
31 'triggers' => 1,
32 'session' => 1,
33 ];
34 civicrm_api('System', 'flush', $api_params);
35 }
36
37 }