3 final class AlmanacInterfaceEditController
4 extends AlmanacDeviceController
{
6 public function handleRequest(AphrontRequest
$request) {
7 $viewer = $this->getViewer();
9 $engine = id(new AlmanacInterfaceEditEngine())
10 ->setController($this);
12 $id = $request->getURIData('id');
14 $device = id(new AlmanacDeviceQuery())
16 ->withIDs(array($request->getInt('deviceID')))
17 ->requireCapabilities(
19 PhabricatorPolicyCapability
::CAN_VIEW
,
20 PhabricatorPolicyCapability
::CAN_EDIT
,
24 return new Aphront404Response();
28 ->addContextParameter('deviceID', $device->getID())
32 return $engine->buildResponse();