@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class HarbormasterHookController
4 extends HarbormasterController {
5
6 public function shouldRequireLogin() {
7 return false;
8 }
9
10 public function handleRequest(AphrontRequest $request) {
11 $name = $request->getURIData('handler');
12 $handler = HarbormasterHookHandler::getHandler($name);
13
14 if (!$handler) {
15 throw new Exception(pht('No handler found for %s', $name));
16 }
17
18 return $handler->handleRequest($request);
19 }
20
21}