Page MenuHomePhabricator

Simplify the implementation of `PhabricatorPolicyCapability` subclasses
ClosedPublic

Authored by joshuaspence on Jul 24 2014, 12:42 PM.
Tags
None
Referenced Files
F13238969: D10039.id24127.diff
Tue, May 21, 11:03 PM
F13227419: D10039.id24136.diff
Mon, May 20, 3:16 AM
F13218323: D10039.id24136.diff
Sat, May 18, 11:47 AM
F13173643: D10039.diff
Tue, May 7, 8:29 PM
Unknown Object (File)
Apr 8 2024, 4:20 AM
Unknown Object (File)
Mar 31 2024, 5:45 PM
Unknown Object (File)
Mar 31 2024, 4:56 PM
Unknown Object (File)
Mar 31 2024, 1:19 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