HomePhabricator

Simplify the implementation of `PhabricatorPolicyCapability` subclasses

Description

Simplify the implementation of PhabricatorPolicyCapability subclasses

Summary: Instead of implementing the getCapabilityKey method in all subclasses of PhabricatorPolicyCapability, provide a final implementation in the base class which uses reflection. See D9837 and D9985 for similar implementations.

Test Plan: N/A

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: epriestley, Korvin, hach-que

Differential Revision: https://secure.phabricator.com/D10039

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Jul 24 2014, 10:25 PM
Reviewer
Blessed Reviewers
Differential Revision
D10039: Simplify the implementation of `PhabricatorPolicyCapability` subclasses
Parents
rPc34de8361984: Rename policy capabilities
Branches
Unknown
Tags
Unknown

Event Timeline