Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phrequent / controller / PhrequentController.php
blobbb8673cdf593aa5cbb5d111cf2ba6830520fc472
1 <?php
3 abstract class PhrequentController extends PhabricatorController {
5 protected function buildSideNavView() {
6 $user = $this->getRequest()->getUser();
8 $nav = new AphrontSideNavFilterView();
9 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
11 id(new PhrequentSearchEngine())
12 ->setViewer($user)
13 ->addNavigationItems($nav->getMenu());
15 $nav->selectFilter(null);
17 return $nav;