Skip to content

Commit 4a43ab0

Browse files
committed
Updated serves method to better determine that it's actually nette project.
1 parent 8cf9bd2 commit 4a43ab0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/Valet/Drivers/Specific/NetteValetDriver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ class NetteValetDriver extends ValetDriver
1111
*/
1212
public function serves(string $sitePath, string $siteName, string $uri): bool
1313
{
14-
return file_exists($sitePath.'/www');
14+
return file_exists($sitePath.'/www/index.php')
15+
&& file_exists($sitePath.'/www/.htaccess')
16+
&& file_exists($sitePath.'/config/common.neon')
17+
&& file_exists($sitePath.'/config/services.neon');
1518
}
1619

1720
/**

0 commit comments

Comments
 (0)