mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 01:10:08 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -22,16 +22,16 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Take any steps necessary before loading the front controller for this driver.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
|
||||
{
|
||||
putenv('FLOW_CONTEXT=Development');
|
||||
putenv('FLOW_REWRITEURLS=1');
|
||||
$_SERVER['SCRIPT_FILENAME'] = $sitePath . '/Web/index.php';
|
||||
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/Web/index.php';
|
||||
$_SERVER['SCRIPT_NAME'] = '/index.php';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user