|
|
@ -38,10 +38,10 @@ class AutoloadBuilder |
|
|
|
$classes = array(); |
|
|
|
foreach ($this->dirs as $dir) { |
|
|
|
$iterator = new RecursiveIteratorIterator( |
|
|
|
new RecursiveDirectoryIterator($dir), |
|
|
|
new RecursiveDirectoryIterator($dir, FilesystemIterator::FOLLOW_SYMLINKS | FilesystemIterator::SKIP_DOTS), |
|
|
|
RecursiveIteratorIterator::LEAVES_ONLY |
|
|
|
); |
|
|
|
|
|
|
|
$iterator = new AsciiSortedIterator($iterator); |
|
|
|
foreach ($iterator as $file) { |
|
|
|
/** |
|
|
|
* @var SplFileInfo $file |
|
|
@ -58,7 +58,7 @@ class AutoloadBuilder |
|
|
|
$content = file_get_contents($file->getRealPath()); |
|
|
|
$matches = array(); |
|
|
|
|
|
|
|
$relative_path = substr($file->getRealPath(), strlen(PATH)); |
|
|
|
$relative_path = substr($file->getPath() . DIRECTORY_SEPARATOR . $file->getFilename(), strlen(PATH)); |
|
|
|
|
|
|
|
if (preg_match_all($this->regex, $content, $matches, PREG_SET_ORDER)) { |
|
|
|
foreach ($matches as $match) { |
|
|
|