mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-06 20:08:29 +01:00
25 lines
513 B
PHP
25 lines
513 B
PHP
|
<?php
|
||
|
|
||
|
abstract class DivinerController extends PhabricatorController {
|
||
|
|
||
|
protected function buildSideNavView() {
|
||
|
$menu = $this->buildMenu();
|
||
|
return AphrontSideNavFilterView::newFromMenu($menu);
|
||
|
}
|
||
|
|
||
|
protected function buildApplicationMenu() {
|
||
|
return $this->buildMenu();
|
||
|
}
|
||
|
|
||
|
private function buildMenu() {
|
||
|
$menu = new PhabricatorMenuView();
|
||
|
|
||
|
id(new DivinerAtomSearchEngine())
|
||
|
->setViewer($this->getRequest()->getUser())
|
||
|
->addNavigationItems($menu);
|
||
|
|
||
|
return $menu;
|
||
|
}
|
||
|
|
||
|
}
|