mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 09:10:10 +01:00
Updated serves method to better determine that it's actually nette project.
This commit is contained in:
@@ -11,7 +11,10 @@ class NetteValetDriver extends ValetDriver
|
||||
*/
|
||||
public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
{
|
||||
return file_exists($sitePath.'/www');
|
||||
return file_exists($sitePath.'/www/index.php')
|
||||
&& file_exists($sitePath.'/www/.htaccess')
|
||||
&& file_exists($sitePath.'/config/common.neon')
|
||||
&& file_exists($sitePath.'/config/services.neon');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user