1
0
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:
Matt Stauffer
2022-12-08 12:45:26 -05:00
parent 1bbe795190
commit 1684068382
5 changed files with 10 additions and 15 deletions

View File

@@ -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;
}
}

View File

@@ -1,7 +0,0 @@
<?php
foreach (scandir('./cli/includes/legacy') as $file) {
if (substr($file, 0, 1) !== '.') {
require_once './cli/includes/legacy/'.$file;
}
}