1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00

Added missing $_SERVER variables for CakePHP 3

This commit is contained in:
Steffen Brand
2017-05-12 19:35:13 +02:00
committed by Adam Wathan
parent 4d49e666a7
commit 4f383f2d77

View File

@@ -42,7 +42,10 @@ public function isStaticFile($sitePath, $siteName, $uri)
*/
public function frontControllerPath($sitePath, $siteName, $uri)
{
$_SERVER['DOCUMENT_ROOT'] = $sitePath.'/webroot';
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/webroot/index.php';
$_SERVER['SCRIPT_NAME'] = '/index.php';
$_SERVER['PHP_SELF'] = '/index.php';
return $sitePath.'/webroot/index.php';
}