private function setRegistryDir($conf) { $dir = $_SERVER['DOCUMENT_ROOT']; $dir .= DIRECTORY_SEPARATOR . $conf->config->paths->vendor; $dir .= DIRECTORY_SEPARATOR . $conf->config->paths->registry; $dir = core\HelperFunctions::replaceSlashes($dir); //echo 'freezedir set to: '.$dir.'<br>'; if (!file_exists($dir)) { mkdir($dir); } $this->ensure(file_exists($dir), "{$dir} does not exist and cannot be created."); core\ApplicationRegistry::setRegistryDirectory($dir); }