Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockBlueprint.php
| Show All 33 Lines | return array( | ||||
| self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
| 'details' => self::SERIALIZATION_JSON, | 'details' => self::SERIALIZATION_JSON, | ||||
| ) | ) | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function generatePHID() { | public function generatePHID() { | ||||
| return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
| DrydockPHIDTypeBlueprint::TYPECONST); | DrydockBlueprintPHIDType::TYPECONST); | ||||
| } | } | ||||
| public function getImplementation() { | public function getImplementation() { | ||||
| $class = $this->className; | $class = $this->className; | ||||
| $implementations = | $implementations = | ||||
| DrydockBlueprintImplementation::getAllBlueprintImplementations(); | DrydockBlueprintImplementation::getAllBlueprintImplementations(); | ||||
| if (!isset($implementations[$class])) { | if (!isset($implementations[$class])) { | ||||
| throw new Exception( | throw new Exception( | ||||
| Show All 39 Lines | |||||