@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 PhabricatorPhurlURLListController
4 extends PhabricatorPhurlController {
5
6 public function shouldAllowPublic() {
7 return true;
8 }
9
10 public function handleRequest(AphrontRequest $request) {
11 $engine = new PhabricatorPhurlURLSearchEngine();
12 $controller = id(new PhabricatorApplicationSearchController())
13 ->setQueryKey($request->getURIData('queryKey'))
14 ->setSearchEngine($engine)
15 ->setNavigation($this->buildSideNav());
16 return $this->delegateToController($controller);
17 }
18
19 public function buildSideNav() {
20 $user = $this->getRequest()->getUser();
21
22 $nav = new AphrontSideNavFilterView();
23 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
24
25 id(new PhabricatorPhurlURLSearchEngine())
26 ->setViewer($user)
27 ->addNavigationItems($nav->getMenu());
28
29 $nav->selectFilter(null);
30
31 return $nav;
32 }
33
34}