mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
* Drop unnecessary doc blocks * Apply fixes from StyleCI Co-authored-by: StyleCI Bot <bot@styleci.io>
25 lines
502 B
PHP
25 lines
502 B
PHP
<?php
|
|
|
|
namespace Valet\Drivers\Specific;
|
|
|
|
use Valet\Drivers\BasicValetDriver;
|
|
|
|
class JigsawValetDriver extends BasicValetDriver
|
|
{
|
|
/**
|
|
* Determine if the driver serves the request.
|
|
*/
|
|
public function serves(string $sitePath, string $siteName, string $uri): bool
|
|
{
|
|
return is_dir($sitePath.'/build_local');
|
|
}
|
|
|
|
/**
|
|
* Mutate the incoming URI.
|
|
*/
|
|
public function mutateUri(string $uri): string
|
|
{
|
|
return rtrim('/build_local'.$uri, '/');
|
|
}
|
|
}
|