addPlugin(new Finder()); /* * "phpdoc -d src -i src/phpDocumentor/DomainModel" * should result in src/Cilex and src/phpDocumentor/. files being found, * but src/phpDocumentor/DomainModel files being left out */ $dashDirectoryPath = new Glob('/src/**/*'); $dashIgnorePath = new InPath(new Path('src/phpDocumentor/DomainModel')); $isHidden = new IsHidden(); $isPhpFile = new HasExtension(['php']); $spec = new AndSpecification($dashDirectoryPath, $dashIgnorePath->notSpecification()); $spec->andSpecification($isHidden->notSpecification()); $spec->andSpecification($isPhpFile); $generator = $filesystem->find($spec); $result = []; foreach($generator as $value) { $result[] = $value; }