Skip to content

Commit a7c9bc7

Browse files
committed
IHF: Symfony finder used.
1 parent 5b9e1b2 commit a7c9bc7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/autoload.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<?php
22

3-
$files = glob(__DIR__ . '/*.php');
3+
use Symfony\Component\Finder\Finder;
4+
5+
$files = Finder::create()
6+
->files()
7+
->in(__DIR__)
8+
->name('*.php')
9+
->notName('autoload.php');
10+
411
foreach ($files as $file) {
512
require_once $file;
613
}

0 commit comments

Comments
 (0)