mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 09:10:03 +01:00
@@ -13,7 +13,9 @@ class SymfonyValetDriver extends ValetDriver
|
|||||||
public function serves($sitePath, $siteName, $uri)
|
public function serves($sitePath, $siteName, $uri)
|
||||||
{
|
{
|
||||||
return (file_exists($sitePath.'/web/app_dev.php') || file_exists($sitePath.'/web/app.php')) &&
|
return (file_exists($sitePath.'/web/app_dev.php') || file_exists($sitePath.'/web/app.php')) &&
|
||||||
(file_exists($sitePath.'/app/AppKernel.php'));
|
(file_exists($sitePath.'/app/AppKernel.php')) || (file_exists($sitePath.'/web/index.php')) &&
|
||||||
|
(file_exists($sitePath.'/src/Kernel.php'))
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -47,6 +49,8 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
|||||||
return $frontControllerPath;
|
return $frontControllerPath;
|
||||||
} elseif (file_exists($frontControllerPath = $sitePath.'/web/app.php')) {
|
} elseif (file_exists($frontControllerPath = $sitePath.'/web/app.php')) {
|
||||||
return $frontControllerPath;
|
return $frontControllerPath;
|
||||||
|
} elseif (file_exists($frontControllerPath = $sitePath.'/web/index.php')) {
|
||||||
|
return $frontControllerPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user