Skip to content

Commit

Permalink
Replaced glob function by Flysystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson49 committed Dec 20, 2024
1 parent 13a356d commit ef3cd73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
require_once __DIR__ . '/vendor/autoload.php';

//Directly include provider wrappers, because they shall be detected by "get_declared_classes"
$files = glob(__DIR__ . '/src/Provider/*.php');
$files = $file_system->listContents('/src/Provider')->toArray();
foreach ($files as $file) {
require_once $file;
require_once __DIR__ . '/'. $file->path();
}

return true;

0 comments on commit ef3cd73

Please sign in to comment.