function runSoft() { $this->log("Run application (soft mode)", GLZ_LOG_SYSTEM); if (file_exists(org_glizy_Paths::get('APPLICATION_STARTUP'))) { // if the startup folder is defined all files are included glz_require_once_dir(org_glizy_Paths::get('APPLICATION_STARTUP')); } glz_defineBaseHost(); $this->_initSiteMap(); $this->_initRequest(); if (file_exists(org_glizy_Paths::get('APPLICATION_SHUTDOWN'))) { // if the shutdown folder is defined all files are included glz_require_once_dir(org_glizy_Paths::get('APPLICATION_SHUTDOWN')); } }
function run() { $this->log("Run Rest application", GLZ_LOG_SYSTEM); if (file_exists(org_glizy_Paths::get('APPLICATION_STARTUP'))) { // if the startup folder is defined all files are included glz_require_once_dir(org_glizy_Paths::get('APPLICATION_STARTUP')); } glz_defineBaseHost(); $this->_initRequest(); glz_require_once_dir(org_glizy_Paths::getRealPath('APPLICATION_CLASSES')); $this->_startProcess(); if (file_exists(org_glizy_Paths::get('APPLICATION_SHUTDOWN'))) { // if the shutdown folder is defined all files are included glz_require_once_dir(org_glizy_Paths::get('APPLICATION_SHUTDOWN')); } }