@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
at upstream/main 24 lines 566 B view raw
1<?php 2 3final class PhrequentListController extends PhrequentController { 4 5 private $queryKey; 6 7 public function shouldAllowPublic() { 8 return true; 9 } 10 11 public function willProcessRequest(array $data) { 12 $this->queryKey = idx($data, 'queryKey'); 13 } 14 15 public function processRequest() { 16 $controller = id(new PhabricatorApplicationSearchController()) 17 ->setQueryKey($this->queryKey) 18 ->setSearchEngine(new PhrequentSearchEngine()) 19 ->setNavigation($this->buildSideNavView()); 20 21 return $this->delegateToController($controller); 22 } 23 24}