mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 09:10:03 +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);
|
$this->checkMageMode($sitePath);
|
||||||
|
|
||||||
if ('developer' === $this->mageMode) {
|
if ('developer' === $this->mageMode) {
|
||||||
|
$_SERVER['DOCUMENT_ROOT'] = $sitePath;
|
||||||
return $sitePath . '/index.php';
|
return $sitePath . '/index.php';
|
||||||
}
|
}
|
||||||
|
$_SERVER['DOCUMENT_ROOT'] = $sitePath . '/pub';
|
||||||
return $sitePath . '/pub/index.php';
|
return $sitePath . '/pub/index.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user