Open holtkamp opened 5 years ago
We could also wrap a function around listClassesInDirectory
which does the checking for us.
aah, yeah, that might even be simpler and more elegant as well! Was just thinking out loud when this idea came to mind 😉
Haha I like it that way, fancy doing a PR adding it? :)
Just a thought on how to put this library to use: an idea might be to assemble a list of classes and check whether they have been configured properly/explicitly in a DependencyInjectionContainer, required for optimization purposes
However, in that case we would be only interested in instantiatable / non-abstract classess...
Extending the function signatures with a boolean flag could be an idea:
However, this does cause a challenge with the functions that use variadic parameters...