1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Test, and fix, ValetDriver

This commit is contained in:
Matt Stauffer
2022-12-02 22:10:04 -05:00
parent ee68152c2f
commit 884c39d70b
4 changed files with 29 additions and 1 deletions

View File

@@ -2,6 +2,11 @@
namespace Valet\Drivers;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use RecursiveRegexIterator;
use RegexIterator;
abstract class ValetDriver
{
/**
@@ -76,7 +81,8 @@ public static function assign($sitePath, $siteName, $uri)
$drivers[] = 'BasicValetDriver';
foreach ($drivers as $driver) {
$driver = new $driver;
$className = "Valet\Drivers\\$driver";
$driver = new $className;
if ($driver->serves($sitePath, $siteName, $driver->mutateUri($uri))) {
return $driver;