| 1 | <?php |
||
| 8 | class DirectoryResource extends BaseDirectoryResource |
||
| 9 | { |
||
| 10 | protected $loader; |
||
| 11 | |||
| 12 | protected $path; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param LoaderInterface $loader The templating loader |
||
| 16 | * @param string $path The directory path |
||
| 17 | * @param string $pattern A regex pattern for file basenames |
||
| 18 | */ |
||
| 19 | public function __construct(LoaderInterface $loader, $path, $pattern = null) |
||
| 26 | |||
| 27 | public function getIterator() |
||
| 33 | } |
||
| 34 |