Differential D12806 Diff 30846 src/applications/harbormaster/step/HarbormasterBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/HarbormasterBuildStepImplementation.php
| <?php | <?php | ||||
| abstract class HarbormasterBuildStepImplementation { | abstract class HarbormasterBuildStepImplementation { | ||||
| public static function getImplementations() { | public static function getImplementations() { | ||||
| return id(new PhutilSymbolLoader()) | return id(new PhutilSymbolLoader()) | ||||
| ->setAncestorClass('HarbormasterBuildStepImplementation') | ->setAncestorClass(__CLASS__) | ||||
| ->loadObjects(); | ->loadObjects(); | ||||
| } | } | ||||
| public static function getImplementation($class) { | public static function getImplementation($class) { | ||||
| $base = idx(self::getImplementations(), $class); | $base = idx(self::getImplementations(), $class); | ||||
| if ($base) { | if ($base) { | ||||
| return (clone $base); | return (clone $base); | ||||
| ▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines | |||||