1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00

Support the app_dev.php front controller

This commit is contained in:
Leo Feyer
2018-11-05 18:03:20 +01:00
committed by GitHub
parent 0b233002ce
commit 72c34749b0

View File

@@ -46,6 +46,13 @@ public function frontControllerPath($sitePath, $siteName, $uri)
return $sitePath.'/web/install.php';
}
if (0 === strncmp($uri, '/app_dev.php', 12)) {
$_SERVER['SCRIPT_NAME'] = '/app_dev.php';
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/app_dev.php';
return $sitePath.'/web/app_dev.php';
}
return $sitePath.'/web/app.php';
}
}