mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-03 04:02:43 +01:00
86c399b657
Summary: Ref T5655. Some discussion in D9839. Generally speaking, `Phabricator{$name}Application` is clearer than `PhabricatorApplication{$name}`. Test Plan: # Pinned and uninstalled some applications. # Applied patch and performed migrations. # Verified that the pinned applications were still pinned and that the uninstalled applications were still uninstalled. # Performed a sanity check on the database contents. Reviewers: btrahan, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, epriestley, Korvin Maniphest Tasks: T5655 Differential Revision: https://secure.phabricator.com/D9982
25 lines
832 B
PHP
25 lines
832 B
PHP
<?php
|
|
|
|
abstract class ConduitAPI_paste_Method extends ConduitAPIMethod {
|
|
|
|
public function getApplication() {
|
|
return PhabricatorApplication::getByClass('PhabricatorPasteApplication');
|
|
}
|
|
|
|
protected function buildPasteInfoDictionary(PhabricatorPaste $paste) {
|
|
return array(
|
|
'id' => $paste->getID(),
|
|
'objectName' => 'P'.$paste->getID(),
|
|
'phid' => $paste->getPHID(),
|
|
'authorPHID' => $paste->getAuthorPHID(),
|
|
'filePHID' => $paste->getFilePHID(),
|
|
'title' => $paste->getTitle(),
|
|
'dateCreated' => $paste->getDateCreated(),
|
|
'language' => $paste->getLanguage(),
|
|
'uri' => PhabricatorEnv::getProductionURI('/P'.$paste->getID()),
|
|
'parentPHID' => $paste->getParentPHID(),
|
|
'content' => $paste->getRawContent(),
|
|
);
|
|
}
|
|
|
|
}
|