isActualFile($staticFilePath = $sitePath.'/Web'.$uri)) { return $staticFilePath; } return false; } /** * Get the fully resolved path to the application's front controller. * * @param string $sitePath * @param string $siteName * @param string $uri * @return string */ public function frontControllerPath($sitePath, $siteName, $uri) { putenv('FLOW_CONTEXT=Development'); putenv('FLOW_REWRITEURLS=1'); $_SERVER['SCRIPT_FILENAME'] = $sitePath.'/Web/index.php'; $_SERVER['SCRIPT_NAME'] = '/index.php'; return $sitePath.'/Web/index.php'; } }