private static function writeBootstrap($bootstrap, $extras, $webDirectory, $ciBasePath) { $template = self::getBootstrapConfigTemplate(); $applicationDirectory = Filesystem::getRelativePath(realpath($extras['ci-app-dir']), $webDirectory); $systemDirectory = Filesystem::getRelativePath(realpath("{$ciBasePath}/system"), $webDirectory); $projectBasePath = Filesystem::getRelativePath(realpath("."), $webDirectory); $template = str_replace(array('{APPLICATION_ENV}', '{CI_SYSTEM_PATH}', '{APPLICATION_DIR}', '{CIX_SYSTEM_PATH}'), array(self::$environment, $systemDirectory, $applicationDirectory, $projectBasePath), $template); file_put_contents($bootstrap, $template); }