Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
<?php | <?php | ||||
/** | /** | ||||
* @task uri Repository URI Management | * @task uri Repository URI Management | ||||
* @task autoclose Autoclose | * @task autoclose Autoclose | ||||
* @task sync Cluster Synchronization | * @task sync Cluster Synchronization | ||||
*/ | */ | ||||
final class PhabricatorRepository extends PhabricatorRepositoryDAO | final class PhabricatorRepository extends PhabricatorRepositoryDAO | ||||
implements | implements | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
PhabricatorMarkupInterface, | PhabricatorMarkupInterface, | ||||
PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
PhabricatorSpacesInterface, | PhabricatorSpacesInterface, | ||||
PhabricatorConduitResultInterface { | PhabricatorConduitResultInterface, | ||||
PhabricatorFulltextInterface { | |||||
/** | /** | ||||
* Shortest hash we'll recognize in raw "a829f32" form. | * Shortest hash we'll recognize in raw "a829f32" form. | ||||
*/ | */ | ||||
const MINIMUM_UNQUALIFIED_HASH = 7; | const MINIMUM_UNQUALIFIED_HASH = 7; | ||||
/** | /** | ||||
* Shortest hash we'll recognize in qualified "rXab7ef2f8" form. | * Shortest hash we'll recognize in qualified "rXab7ef2f8" form. | ||||
▲ Show 20 Lines • Show All 2,541 Lines • ▼ Show 20 Lines | /* -( PhabricatorConduitResultInterface )---------------------------------- */ | ||||
public function getConduitSearchAttachments() { | public function getConduitSearchAttachments() { | ||||
return array( | return array( | ||||
id(new DiffusionRepositoryURIsSearchEngineAttachment()) | id(new DiffusionRepositoryURIsSearchEngineAttachment()) | ||||
->setAttachmentKey('uris'), | ->setAttachmentKey('uris'), | ||||
); | ); | ||||
} | } | ||||
/* -( PhabricatorFulltextInterface )--------------------------------------- */ | |||||
public function newFulltextEngine() { | |||||
return new PhabricatorRepositoryFulltextEngine(); | |||||
} | |||||
} | } |