3 namespace pharext\Task
;
7 use RecursiveDirectoryIterator
;
8 use RecursiveIteratorIterator
;
11 * List all library files of pharext to bundle with a phar
13 class BundleGenerator
implements Task
16 * @param bool $verbose
19 public function run($verbose = false) {
21 printf("Packaging pharext ... \n");
23 $rdi = new RecursiveDirectoryIterator(dirname(dirname(__DIR__
)));
24 $rii = new RecursiveIteratorIterator($rdi);
25 for ($rii->rewind(); $rii->valid(); $rii->next()) {
27 yield
$rii->getSubPathname() => $rii->key();