if (!empty($file['precompileCode'])) { $fileContents .= $file['precompileCode'] . "\n\n"; } $fileContents .= $content . "\n\n"; if (!empty($file['postcompileCode'])) { $fileContents .= $file['postcompileCode'] . "\n\n"; } } file_put_contents($classesCacheFilename, $fileContents); } } } // Request Parser HookManager::callHook("BeforeRequestParser"); HookManager::callHook("BeforeRequestParserStep2"); HookManager::callHook("RequestParser"); HookManager::callHook("AfterRequestParser"); HookManager::callHook("BeforeController"); HookManager::callHook("Controller"); HookManager::callHook("AfterController"); //$time = microtime(true); HookManager::callHook("BeforeOutput"); HookManager::callHook("Output"); HookManager::callHook("AfterOutput"); if (ConfigManager::getGlobalConfig()->Stingle->BootCompiler === true) { if (!file_exists($configCacheFilename) and !$isGetConfigFromCache) { file_put_contents($configCacheFilename, serialize(ConfigManager::mergeConfigs(ConfigManager::getGlobalConfig(), ConfigManager::getCache()))); } } //echo "out - " . (microtime(true) - $time) . "<br>"; // Finish