Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / people / controller / PhabricatorPeopleLogsController.php
blobe6054398d8f9177a7ffbdc69d99f597b6a4ff85e
1 <?php
3 final class PhabricatorPeopleLogsController
4 extends PhabricatorPeopleController {
6 public function handleRequest(AphrontRequest $request) {
7 $controller = id(new PhabricatorApplicationSearchController())
8 ->setQueryKey($request->getURIData('queryKey'))
9 ->setSearchEngine(new PhabricatorPeopleLogSearchEngine())
10 ->setNavigation($this->buildSideNavView());
12 return $this->delegateToController($controller);
15 public function buildSideNavView($for_app = false) {
16 $nav = new AphrontSideNavFilterView();
17 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
19 $viewer = $this->getRequest()->getUser();
21 id(new PhabricatorPeopleLogSearchEngine())
22 ->setViewer($viewer)
23 ->addNavigationItems($nav->getMenu());
25 return $nav;