Differential D13429 Diff 32808 src/applications/harbormaster/step/HarbormasterBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/HarbormasterBuildStepImplementation.php
<?php | <?php | ||||
/** | /** | ||||
* @task autotarget Automatic Targets | * @task autotarget Automatic Targets | ||||
*/ | */ | ||||
abstract class HarbormasterBuildStepImplementation extends Phobject { | abstract class HarbormasterBuildStepImplementation extends Phobject { | ||||
private $settings; | private $settings; | ||||
public static function getImplementations() { | public static function getImplementations() { | ||||
return id(new PhutilSymbolLoader()) | return id(new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->loadObjects(); | ->execute(); | ||||
} | } | ||||
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 250 Lines • Show Last 20 Lines |