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
27 lines
548 B
PHP
27 lines
548 B
PHP
<?php
|
|
|
|
final class HeraldWebhookListController
|
|
extends HeraldWebhookController {
|
|
|
|
public function shouldAllowPublic() {
|
|
return true;
|
|
}
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
return id(new HeraldWebhookSearchEngine())
|
|
->setController($this)
|
|
->buildResponse();
|
|
}
|
|
|
|
protected function buildApplicationCrumbs() {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
id(new HeraldWebhookEditEngine())
|
|
->setViewer($this->getViewer())
|
|
->addActionToCrumbs($crumbs);
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|