Open rustamwin opened 11 months ago
Why do you want to get all classes without any filters?
If classifier will be may parse specific folder only, it is matter.
Either we need to refactor filters.
Why do you want to get all classes without any filters?
Are the specified directories not a filter?
Are the specified directories not a filter?
I mean initial classes to which the filters will aready be applied. Now is include all PHP files from defined directories and use get_declared_classes()
for get all classes. In this case directory is not filter.
Make sense, would you implement it, @rustamwin ?
Make sense, would you implement it, @rustamwin ?
Let's separate it
Now is include all PHP files from defined directories and use get_declared_classes() for get all classes. In this case directory is not filter.
See https://github.com/yiisoft/classifier/blob/master/src/Classifier.php#L97-L100
@rustamwin Is "Directory" filter or not in this discussion?
Should we return all classes if no filters are used? https://github.com/yiisoft/classifier/blob/16b0d8aaa2b4b1f435ccb2b087f2a52e5e43be22/src/Classifier.php#L75-L77