setLogWriter(new BASE_CLASS_FileLogWriter($logFilePath)); $errorManager->setLogger($logger); } @include OW_DIR_ROOT . 'ow_install' . DS . 'install.php'; OW::getSession()->start(); $application = OW::getApplication(); if ( OW_PROFILER_ENABLE || OW_DEV_MODE ) { UTIL_Profiler::getInstance()->mark('before_app_init'); } $application->init(); if ( OW_PROFILER_ENABLE || OW_DEV_MODE ) { UTIL_Profiler::getInstance()->mark('after_app_init'); } $event = new OW_Event(OW_EventManager::ON_APPLICATION_INIT); OW::getEventManager()->trigger($event); $application->route(); $event = new OW_Event(OW_EventManager::ON_AFTER_ROUTE); if ( OW_PROFILER_ENABLE || OW_DEV_MODE ) { UTIL_Profiler::getInstance()->mark('after_route'); } OW::getEventManager()->trigger($event); $application->handleRequest(); if ( OW_PROFILER_ENABLE || OW_DEV_MODE ) { UTIL_Profiler::getInstance()->mark('after_controller_call'); } $event = new OW_Event(OW_EventManager::ON_AFTER_REQUEST_HANDLE); OW::getEventManager()->trigger($event); $application->finalize(); if ( OW_PROFILER_ENABLE || OW_DEV_MODE ) { UTIL_Profiler::getInstance()->mark('after_finalize'); } $application->returnResponse();