Skip to content

Commit

Permalink
Load specific drivers before custom drivers to allow for extension.
Browse files Browse the repository at this point in the history
Co-Authored-By: Chris Brown <[email protected]>
  • Loading branch information
mattstauffer and drbyte committed May 15, 2023
1 parent a4145d7 commit 55ceb3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/Valet/Drivers/ValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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';

Expand Down

0 comments on commit 55ceb3a

Please sign in to comment.