Skip to content

Commit

Permalink
IHF: Symfony finder used.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Jul 7, 2016
1 parent 5b9e1b2 commit a7c9bc7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/autoload.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<?php

$files = glob(__DIR__ . '/*.php');
use Symfony\Component\Finder\Finder;

$files = Finder::create()
->files()
->in(__DIR__)
->name('*.php')
->notName('autoload.php');

foreach ($files as $file) {
require_once $file;
}

0 comments on commit a7c9bc7

Please sign in to comment.