Page MenuHomePhabricator

Simplify the implementation of `PhabricatorPolicyCapability` subclasses
ClosedPublic

Authored by joshuaspence on Jul 24 2014, 12:42 PM.
Tags
None
Referenced Files
F18361726: D10039.diff
Wed, Aug 27, 12:35 PM
F17955892: D10039.id24136.diff
Fri, Aug 1, 5:07 AM
F17935637: D10039.id24127.diff
Wed, Jul 30, 11:28 PM
F17854955: D10039.id.diff
Jul 27 2025, 3:44 PM
F17833250: D10039.diff
Jul 26 2025, 1:24 PM
Unknown Object (File)
Jun 19 2025, 12:28 AM
Unknown Object (File)
Jun 18 2025, 2:51 PM
Unknown Object (File)
Jun 18 2025, 8:29 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