Skip to content

Commit

Permalink
Updated serves method to better determine that it's actually nette pr…
Browse files Browse the repository at this point in the history
…oject.
  • Loading branch information
antonL95 committed Jun 1, 2024
1 parent 8cf9bd2 commit 4a43ab0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/Valet/Drivers/Specific/NetteValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit 4a43ab0

Please sign in to comment.