mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50: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:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user