mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
8ea13f3ce9
Summary: Ref T7984. With this, an install can add an ExternalSymbolsSource to src/extensions, which will include whatever source they have. Test Plan: search for php and python builtins. Reviewers: joshuaspence, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T7984 Differential Revision: https://secure.phabricator.com/D13036
15 lines
349 B
PHP
15 lines
349 B
PHP
<?php
|
|
|
|
abstract class DiffusionExternalSymbolsSource {
|
|
|
|
/**
|
|
* @return list of PhabricatorRepositorySymbol
|
|
*/
|
|
abstract public function executeQuery(DiffusionExternalSymbolQuery $query);
|
|
|
|
protected function buildExternalSymbol() {
|
|
return id(new PhabricatorRepositorySymbol())
|
|
->setIsExternal(true)
|
|
->makeEphemeral();
|
|
}
|
|
}
|