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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user