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

Replace some \n with PHP_EOL; move custom drivers into Custom namespace

This commit is contained in:
Matt Stauffer
2022-12-21 19:54:13 -05:00
parent a4e8331852
commit 20f48f6eab
9 changed files with 58 additions and 18 deletions

View File

@@ -57,7 +57,7 @@ public static function assign(string $sitePath, string $siteName, string $uri):
}
// Queue custom drivers for this environment
$drivers = array_merge($drivers, static::driversIn(VALET_HOME_PATH.'/Drivers'));
$drivers = array_merge($drivers, static::customDrivers());
// Queue Valet-shipped drivers
$drivers[] = 'LaravelValetDriver';
@@ -126,6 +126,13 @@ public static function specificDrivers(): array
}, static::driversIn(__DIR__.'/Specific'));
}
public static function customDrivers(): array
{
return array_map(function ($item) {
return 'Custom\\' . $item;
}, static::driversIn(VALET_HOME_PATH.'/Drivers'));
}
/**
* Take any steps necessary before loading the front controller for this driver.
*