Summary: Ref T11330. Adds general support for webhooks. This is still rough and missing a lot of pieces -- and not yet useful for anything -- but can make HTTP requests. Test Plan: Used `bin/webhook call ...` to complete requests to a test endpoint. Maniphest Tasks: T11330 Differential Revision: https://secure.phabricator.com/D19045
33 lines
825 B
PHP
33 lines
825 B
PHP
<?php
|
|
|
|
final class HeraldRuleListController extends HeraldController {
|
|
|
|
public function shouldAllowPublic() {
|
|
return true;
|
|
}
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
$querykey = $request->getURIData('queryKey');
|
|
|
|
$controller = id(new PhabricatorApplicationSearchController())
|
|
->setQueryKey($querykey)
|
|
->setSearchEngine(new HeraldRuleSearchEngine())
|
|
->setNavigation($this->buildSideNavView());
|
|
|
|
return $this->delegateToController($controller);
|
|
}
|
|
|
|
protected function buildApplicationCrumbs() {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
$crumbs->addAction(
|
|
id(new PHUIListItemView())
|
|
->setName(pht('Create Herald Rule'))
|
|
->setHref($this->getApplicationURI('create/'))
|
|
->setIcon('fa-plus-square'));
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|