1 | <?php |
||
2 | |||
3 | class JigsawValetDriver extends BasicValetDriver |
||
4 | { |
||
5 | /** |
||
6 | * Mutate the incoming URI. |
||
7 | * |
||
8 | * @param string $uri |
||
9 | * |
||
10 | * @return string |
||
11 | */ |
||
12 | public function mutateUri($uri) |
||
13 | { |
||
14 | return rtrim('/build_local'.$uri, '/'); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Determine if the driver serves the request. |
||
19 | * |
||
20 | * @param string $sitePath |
||
21 | * @param string $siteName |
||
22 | * @param string $uri |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function serves($sitePath, $siteName, $uri) |
||
27 | { |
||
28 | return is_dir($sitePath.'/build_local'); |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
29 | } |
||
30 | } |
||
31 |