We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9560909 commit 8c5c228Copy full SHA for 8c5c228
cli/drivers/SculpinValetDriver.php
@@ -11,6 +11,17 @@ class SculpinValetDriver extends BasicValetDriver
11
* @return bool
12
*/
13
public function serves($sitePath, $siteName, $uri)
14
+ {
15
+ return $this->isModernSculpinProject($sitePath) ||
16
+ $this->isLegacySculpinProject($sitePath);
17
+ }
18
+
19
+ private function isModernSculpinProject($sitePath)
20
21
+ return is_dir($sitePath.'/source') && is_dir($sitePath.'/output_dev');
22
23
24
+ private function isLegacySculpinProject($sitePath)
25
{
26
return is_dir($sitePath.'/.sculpin');
27
}
0 commit comments