diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 11be8a50f0..35be621604 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1004,6 +1004,7 @@ phutil_register_library_map(array( 'DrydockBlueprintCustomField' => 'applications/drydock/customfield/DrydockBlueprintCustomField.php', 'DrydockBlueprintDatasource' => 'applications/drydock/typeahead/DrydockBlueprintDatasource.php', 'DrydockBlueprintDisableController' => 'applications/drydock/controller/DrydockBlueprintDisableController.php', + 'DrydockBlueprintEditConduitAPIMethod' => 'applications/drydock/conduit/DrydockBlueprintEditConduitAPIMethod.php', 'DrydockBlueprintEditController' => 'applications/drydock/controller/DrydockBlueprintEditController.php', 'DrydockBlueprintEditEngine' => 'applications/drydock/editor/DrydockBlueprintEditEngine.php', 'DrydockBlueprintEditor' => 'applications/drydock/editor/DrydockBlueprintEditor.php', @@ -6090,6 +6091,7 @@ phutil_register_library_map(array( 'DrydockBlueprintCustomField' => 'PhabricatorCustomField', 'DrydockBlueprintDatasource' => 'PhabricatorTypeaheadDatasource', 'DrydockBlueprintDisableController' => 'DrydockBlueprintController', + 'DrydockBlueprintEditConduitAPIMethod' => 'PhabricatorEditEngineAPIMethod', 'DrydockBlueprintEditController' => 'DrydockBlueprintController', 'DrydockBlueprintEditEngine' => 'PhabricatorEditEngine', 'DrydockBlueprintEditor' => 'PhabricatorApplicationTransactionEditor', diff --git a/src/applications/drydock/conduit/DrydockBlueprintEditConduitAPIMethod.php b/src/applications/drydock/conduit/DrydockBlueprintEditConduitAPIMethod.php new file mode 100644 index 0000000000..764c077d87 --- /dev/null +++ b/src/applications/drydock/conduit/DrydockBlueprintEditConduitAPIMethod.php @@ -0,0 +1,20 @@ +setBlueprintImplementation($impl); + return $this->newEditableObject(); + } + protected function newObjectQuery() { return new DrydockBlueprintQuery(); } diff --git a/src/applications/transactions/editengine/PhabricatorEditEngine.php b/src/applications/transactions/editengine/PhabricatorEditEngine.php index 6c9cb5e201..8ba49f4d77 100644 --- a/src/applications/transactions/editengine/PhabricatorEditEngine.php +++ b/src/applications/transactions/editengine/PhabricatorEditEngine.php @@ -630,6 +630,15 @@ abstract class PhabricatorEditEngine return $this->isCreate; } + /** + * Initialize a new object for documentation creation. + * + * @return object Newly initialized object. + * @task load + */ + protected function newEditableObjectForDocumentation() { + return $this->newEditableObject(); + } /** * Flag this workflow as a create or edit. @@ -2198,7 +2207,7 @@ abstract class PhabricatorEditEngine return array(); } - $object = $this->newEditableObject(); + $object = $this->newEditableObjectForDocumentation(); $fields = $this->buildEditFields($object); return $this->getConduitEditTypesFromFields($fields); }