Page MenuHomePhabricator

Simplify the implementation of `PhabricatorPolicyCapability` subclasses
ClosedPublic

Authored by joshuaspence on Jul 24 2014, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 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
Unknown Object (File)
Mar 27 2024, 9:35 PM
Unknown Object (File)
Mar 27 2024, 9:35 PM
Unknown Object (File)
Feb 10 2024, 10:56 PM
Unknown Object (File)
Jan 27 2024, 2:49 PM

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