Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/controller/PhabricatorAuthSSHKeyListController.php
12256 views
1
<?php
2
3
final class PhabricatorAuthSSHKeyListController
4
extends PhabricatorAuthSSHKeyController {
5
6
public function shouldAllowPublic() {
7
return true;
8
}
9
10
public function handleRequest(AphrontRequest $request) {
11
$object_phid = $request->getURIData('forPHID');
12
$object = $this->loadSSHKeyObject($object_phid, false);
13
if (!$object) {
14
return new Aphront404Response();
15
}
16
17
$engine = id(new PhabricatorAuthSSHKeySearchEngine())
18
->setSSHKeyObject($object);
19
20
return id($engine)
21
->setController($this)
22
->buildResponse();
23
}
24
25
}
26
27