Skip to content

Commit

Permalink
enable finder search follow link files and directories
Browse files Browse the repository at this point in the history
If I have many classes in different directories, I can create a directory, create files and directories link in it. Add this method, swagger-php will follow this structure as well.
  • Loading branch information
Rivsen authored and bfanger committed Apr 25, 2017
1 parent 5ea1c2f commit 57a0b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static function finder($directory, $exclude = null)
$finder = new Finder();
$finder->sortByName();
}
$finder->files()->name('*.php');
$finder->files()->followLinks()->name('*.php');
if (is_string($directory)) {
if (is_file($directory)) { // Scan a single file?
$finder->append([$directory]);
Expand Down

0 comments on commit 57a0b14

Please sign in to comment.