Differential D12806 Diff 30846 src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
| Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Lines | /* -( Logging )------------------------------------------------------------ */ | ||||
| public static function getAllBlueprintImplementations() { | public static function getAllBlueprintImplementations() { | ||||
| static $list = null; | static $list = null; | ||||
| if ($list === null) { | if ($list === null) { | ||||
| $blueprints = id(new PhutilSymbolLoader()) | $blueprints = id(new PhutilSymbolLoader()) | ||||
| ->setType('class') | ->setType('class') | ||||
| ->setAncestorClass('DrydockBlueprintImplementation') | ->setAncestorClass(__CLASS__) | ||||
| ->setConcreteOnly(true) | ->setConcreteOnly(true) | ||||
| ->selectAndLoadSymbols(); | ->selectAndLoadSymbols(); | ||||
| $list = ipull($blueprints, 'name', 'name'); | $list = ipull($blueprints, 'name', 'name'); | ||||
| foreach ($list as $class_name => $ignored) { | foreach ($list as $class_name => $ignored) { | ||||
| $list[$class_name] = newv($class_name, array()); | $list[$class_name] = newv($class_name, array()); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines | |||||