1
0
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:
Beau Simensen
2017-11-12 22:05:10 -06:00
parent 9560909d34
commit c556f26f46

View File

@@ -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';
}
}