1
0
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:
Anton
2024-06-01 14:57:23 +02:00
parent 8cf9bd2b91
commit 4a43ab03db

View File

@@ -11,7 +11,10 @@ class NetteValetDriver extends ValetDriver
*/ */
public function serves(string $sitePath, string $siteName, string $uri): bool 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');
} }
/** /**