Page MenuHomePhabricator

Simplify the implementation of `PhabricatorPolicyCapability` subclasses
ClosedPublic

Authored by joshuaspence on Jul 24 2014, 12:42 PM.
Tags
None
Referenced Files
F18973278: D10039.id24127.diff
Nov 15 2025, 3:37 PM
F18876302: D10039.id24136.diff
Nov 5 2025, 11:17 PM
F18503889: D10039.id.diff
Sep 4 2025, 11:27 PM
F18495591: D10039.diff
Sep 4 2025, 4:32 PM
F18430956: D10039.id.diff
Aug 31 2025, 4:39 AM
F18426672: D10039.id24136.diff
Aug 30 2025, 11:09 PM
F18418655: D10039.id.diff
Aug 30 2025, 1:33 PM
F18410904: D10039.id24127.diff
Aug 30 2025, 5:27 AM

Details

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

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Simplify the implementation of `PhabricatorPolicyCapability` subclasses.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jul 24 2014, 1:26 PM