Skip to content

Commit 611f199

Browse files
authored
Update HydeValetDriver.php
1 parent 5902f2d commit 611f199

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

resources/stubs/HydeValetDriver.php

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
use Composer\InstalledVersions;
66
use Valet\Drivers\BasicValetDriver;
77

8+
function dd(...$args)
9+
{
10+
echo '<pre>';
11+
foreach ($args as $x) {
12+
var_dump($x);
13+
}
14+
die(1);
15+
}
16+
817
class HydeValetDriver extends BasicValetDriver
918
{
1019
/**
@@ -15,16 +24,20 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
1524
return file_exists($sitePath.'/hyde');
1625
}
1726

27+
/**
28+
* Take any steps necessary before loading the front controller for this driver.
29+
*/
30+
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
31+
{
32+
//
33+
}
34+
1835
/**
1936
* Determine if the incoming request is for a static file.
2037
*/
2138
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
2239
{
23-
if (file_exists($staticFilePath = $sitePath.'/_site'.$uri)) {
24-
return $staticFilePath;
25-
}
26-
27-
return false;
40+
return false; // Handled by the realtime compiler
2841
}
2942

3043
/**

0 commit comments

Comments
 (0)