1 | <?php |
||
7 | class FinderService |
||
8 | { |
||
9 | protected $filesystem; |
||
10 | |||
11 | public function __construct() |
||
15 | |||
16 | /** |
||
17 | * @param array $excludes |
||
18 | * |
||
19 | * @return $this |
||
20 | */ |
||
21 | public function excluding($excludes) |
||
27 | |||
28 | /** |
||
29 | * Get all of the files from the given directory (recursive). |
||
30 | * |
||
31 | * @param string $directory |
||
32 | * @param bool $hidden |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | public function allFiles($directory, $hidden = false) |
||
40 | } |
||
41 |