dolibarr/build/phpstan/bootstrap.php

21 lines
596 B
PHP
Raw Normal View History

2019-05-15 18:59:46 +02:00
<?php
2023-12-04 10:16:54 +01:00
2019-05-15 18:59:46 +02:00
// Defined some constants and load Dolibarr env to reduce PHPStan bootstrap that fails to load a lot of things.
2023-08-05 20:27:29 +02:00
//define('DOL_DOCUMENT_ROOT', __DIR__ . '/../../htdocs');
//define('DOL_DATA_ROOT', __DIR__ . '/../../documents');
//define('DOL_URL_ROOT', '/');
2019-05-15 18:59:46 +02:00
2023-08-05 20:27:29 +02:00
// Load the main.inc.php file to have functions env defined
2023-12-04 10:16:54 +01:00
if (!defined("NOLOGIN")) {
define("NOLOGIN", '1');
}
2024-01-04 14:25:35 +01:00
if (!defined("NOSESSION")) {
define("NOSESSION", '1');
}
2023-12-04 10:16:54 +01:00
if (!defined("NOHTTPSREDIRECT")) {
define("NOHTTPSREDIRECT", '1');
}
2024-01-10 14:52:12 +01:00
global $conf, $db, $langs, $user;
2019-05-15 18:59:46 +02:00
include_once __DIR__ . '/../../htdocs/main.inc.php';