v2.2: [Refactoring] Add `getResolver` method to `BaseDirective` class (#292)
Generalize how directives get a resolver method from the directive args. This makes the signature for current and future directives more consistent and provides a convenient helper for custom directives.