mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 01:00:09 +01:00
Support for Magento Commerce (Cloud) applications that rely on DOCUMENT_ROOT
This commit is contained in:
@@ -144,8 +144,10 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
||||
$this->checkMageMode($sitePath);
|
||||
|
||||
if ('developer' === $this->mageMode) {
|
||||
$_SERVER['DOCUMENT_ROOT'] = $sitePath;
|
||||
return $sitePath . '/index.php';
|
||||
}
|
||||
$_SERVER['DOCUMENT_ROOT'] = $sitePath . '/pub';
|
||||
return $sitePath . '/pub/index.php';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user