HomePhorge

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
Joshua SpenceAuthored on Jul 24 2014, 3:25 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPc34de8361984: Rename policy capabilities
Branches
Unknown
Tags
Unknown

Event Timeline