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

Load specific drivers before custom drivers to allow for extension.

Co-Authored-By: Chris Brown <code@drbyte.dev>
This commit is contained in:
Matt Stauffer
2023-05-15 12:26:47 -04:00
parent a4145d77b5
commit 55ceb3a7ad

View File

@@ -33,6 +33,9 @@ public static function assign(string $sitePath, string $siteName, string $uri):
{
$drivers = [];
// Must scan these so they're extensible by customSiteDrivers loaded next
$specificDrivers = static::specificDrivers();
// Queue custom driver based on path
if ($customSiteDriver = static::customSiteDriver($sitePath)) {
$drivers[] = $customSiteDriver;
@@ -43,7 +46,7 @@ public static function assign(string $sitePath, string $siteName, string $uri):
// Queue Valet-shipped drivers
$drivers[] = 'LaravelValetDriver';
$drivers = array_merge($drivers, static::specificDrivers());
$drivers = array_merge($drivers, $specificDrivers);
$drivers[] = 'BasicWithPublicValetDriver';
$drivers[] = 'BasicValetDriver';