Use PhutilClassMapQuery where appropriate.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARC4d6d3feb7fc1: Use PhutilClassMapQuery
arc unit
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Oh, there's also a bunch of additional places where it maybe makes sense to use PhutilClassMapQuery instead of PhutilSymbolLoader just because of the cacheing... what do you thnk?
For example, in ArcanistConfigurationDrivenLintEngine we do this:
$linters = id(new PhutilSymbolLoader()) ->setAncestorClass('ArcanistLinter') ->loadObjects();
Comment Actions
I think it's probably good to use it everywhere -- the caching probably isn't too important, but I think it's more consistent and makes intent more clear.