Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / notification / controller / PhabricatorNotificationListController.php
blob718c2431a1a5b3962d0893d797e806c58a86c4cc
1 <?php
3 final class PhabricatorNotificationListController
4 extends PhabricatorNotificationController {
6 public function handleRequest(AphrontRequest $request) {
7 $querykey = $request->getURIData('queryKey');
9 $controller = id(new PhabricatorApplicationSearchController())
10 ->setQueryKey($querykey)
11 ->setSearchEngine(new PhabricatorNotificationSearchEngine())
12 ->setNavigation($this->buildSideNavView());
14 return $this->delegateToController($controller);
17 public function buildSideNavView() {
18 $viewer = $this->getViewer();
20 $nav = new AphrontSideNavFilterView();
21 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
23 id(new PhabricatorNotificationSearchEngine())
24 ->setViewer($viewer)
25 ->addNavigationItems($nav->getMenu());
26 $nav->selectFilter(null);
28 return $nav;