mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 17:10:05 +01:00
Refactor where legacy drivers are pulled in
This commit is contained in:
@@ -8,3 +8,10 @@
|
||||
require_once './cli/Valet/Drivers/'.$file;
|
||||
}
|
||||
}
|
||||
|
||||
// Require legacy drivers; can be deprecated in v4
|
||||
foreach (scandir('./cli/includes/legacy') as $file) {
|
||||
if (substr($file, 0, 1) !== '.') {
|
||||
require_once './cli/includes/legacy/'.$file;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
foreach (scandir('./cli/includes/legacy') as $file) {
|
||||
if (substr($file, 0, 1) !== '.') {
|
||||
require_once './cli/includes/legacy/'.$file;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user