Skip to content

Commit c95334a

Browse files
authored
Merge pull request #1414 from laravel/mes/allow-custom-drivers-to-extend-specific-drivers
Load specific drivers before custom drivers to allow for extension.
2 parents 3f8396d + 55ceb3a commit c95334a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/Valet/Drivers/ValetDriver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public static function assign(string $sitePath, string $siteName, string $uri):
3333
{
3434
$drivers = [];
3535

36+
// Must scan these so they're extensible by customSiteDrivers loaded next
37+
$specificDrivers = static::specificDrivers();
38+
3639
// Queue custom driver based on path
3740
if ($customSiteDriver = static::customSiteDriver($sitePath)) {
3841
$drivers[] = $customSiteDriver;
@@ -43,7 +46,7 @@ public static function assign(string $sitePath, string $siteName, string $uri):
4346

4447
// Queue Valet-shipped drivers
4548
$drivers[] = 'LaravelValetDriver';
46-
$drivers = array_merge($drivers, static::specificDrivers());
49+
$drivers = array_merge($drivers, $specificDrivers);
4750
$drivers[] = 'BasicWithPublicValetDriver';
4851
$drivers[] = 'BasicValetDriver';
4952

0 commit comments

Comments
 (0)