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:
committed by
Adam Wathan
parent
4d49e666a7
commit
4f383f2d77
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user