3 * Bootstrap file for psalm
5 * The checks for defined are because psalm --alter can use this file multiple times
8 declare(strict_types
=1);
10 use PhpMyAdmin\Config\Settings
;
12 if (! defined('ROOT_PATH')) {
13 // phpcs:disable PSR1.Files.SideEffects
14 define('ROOT_PATH', dirname(__DIR__
) . DIRECTORY_SEPARATOR
);
18 if (! defined('TEST_PATH')) {
19 // phpcs:disable PSR1.Files.SideEffects
20 define('TEST_PATH', dirname(__DIR__
) . DIRECTORY_SEPARATOR
);
24 // phpcs:disable PSR1.Files.SideEffects
25 if (! defined('PHPMYADMIN')) {
26 define('PHPMYADMIN', true);
29 if (! defined('TESTSUITE')) {
30 define('TESTSUITE', true);
35 include_once ROOT_PATH
. 'examples/signon-script.php';
36 require_once ROOT_PATH
. 'libraries/constants.php';
37 require_once AUTOLOAD_FILE
;
39 $settings = new Settings([]);
40 $GLOBALS['cfg'] = $settings->toArray();
41 $GLOBALS['server'] = 0;
43 // phpcs:disable PSR1.Files.SideEffects
44 if (! defined('PMA_PATH_TO_BASEDIR')) {
45 define('PMA_PATH_TO_BASEDIR', '');
50 // for PhpMyAdmin\Plugins\Import\ImportLdi
51 $GLOBALS['plugin_param'] = 'table';