Fix System class conflict.
This commit is contained in:
davidcallizaya
2017-08-03 18:44:57 -04:00
parent f0c2511968
commit 81149399da
362 changed files with 1843 additions and 127409 deletions

View File

@@ -285,7 +285,7 @@ class WebApplication
Services\Api::setWorkspace(SYS_SYS);
$cacheDir = defined("PATH_WORKSPACE") ? PATH_WORKSPACE : (defined("PATH_C")? PATH_C: sys_get_temp_dir());
$sysConfig = \System::getSystemConfiguration();
$sysConfig = \PMSystem::getSystemConfiguration();
\Luracast\Restler\Defaults::$cacheDirectory = $cacheDir;
$productionMode = (bool) !(isset($sysConfig["service_api_debug"]) && $sysConfig["service_api_debug"]);
@@ -449,7 +449,7 @@ class WebApplication
\Bootstrap::initVendors();
\Bootstrap::LoadSystem( 'monologProvider' );
$arraySystemConfiguration = \System::getSystemConfiguration();
$arraySystemConfiguration = \PMSystem::getSystemConfiguration();
ini_set('date.timezone', $arraySystemConfiguration['time_zone']); //Set Time Zone
@@ -497,7 +497,7 @@ class WebApplication
exit(0);
}
$arraySystemConfiguration = \System::getSystemConfiguration('', '', SYS_SYS);
$arraySystemConfiguration = \PMSystem::getSystemConfiguration('', '', SYS_SYS);
//Do not change any of these settings directly, use env.ini instead
ini_set('display_errors', $arraySystemConfiguration['display_errors']);