Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterHookController.php
- This file was added.
<?php | |||||
final class HarbormasterHookController | |||||
extends HarbormasterController { | |||||
public function shouldRequireLogin() { | |||||
return false; | |||||
} | |||||
public function handleRequest(AphrontRequest $request) { | |||||
$name = $request->getURIData('handler'); | |||||
$handler = HarbormasterHookHandler::getHandler($name); | |||||
if (!$handler) { | |||||
throw new Exception(pht('No handler found for %s', $name)); | |||||
} | |||||
return $handler->handleRequest($request); | |||||
} | |||||
} |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0