mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fix method visibility for PhabricatorController
subclasses
Summary: Ref T6822. Test Plan: Visual inspection. These methods are only called from within `PhabricatorController` subclasses. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11241
This commit is contained in:
parent
e448386d39
commit
e7f8e79742
59 changed files with 73 additions and 74 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
abstract class AlmanacDeviceController extends AlmanacController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$list_uri = $this->getApplicationURI('device/');
|
||||
|
|
|
@ -16,7 +16,7 @@ final class AlmanacDeviceListController
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
abstract class AlmanacNetworkController extends AlmanacController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$list_uri = $this->getApplicationURI('network/');
|
||||
|
|
|
@ -16,7 +16,7 @@ final class AlmanacNetworkListController
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
abstract class AlmanacServiceController extends AlmanacController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$list_uri = $this->getApplicationURI('service/');
|
||||
|
|
|
@ -16,7 +16,7 @@ final class AlmanacServiceListController
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -18,7 +18,7 @@ abstract class PhabricatorAuditController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView()->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ abstract class PhabricatorAuthProviderConfigController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView($for_app = true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -20,11 +20,11 @@ abstract class PhabricatorCalendarController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView()->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -26,7 +26,7 @@ abstract class PhabricatorConfigController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(null, true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ abstract class ConpherenceController extends PhabricatorController {
|
|||
|
||||
private $conpherences;
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
$nav = new PHUIListView();
|
||||
|
||||
$nav->newLink(
|
||||
|
@ -30,7 +30,7 @@ abstract class ConpherenceController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs
|
||||
|
|
|
@ -21,11 +21,11 @@ abstract class PhabricatorCountdownController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView($for_app = true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -39,7 +39,7 @@ final class PhabricatorDashboardListController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -36,7 +36,7 @@ final class PhabricatorDashboardPanelListController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addTextCrumb(pht('Panels'), $this->getApplicationURI().'panel/');
|
||||
|
|
|
@ -49,7 +49,7 @@ final class PhabricatorDashboardViewController
|
|||
));
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$id = $this->id;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
abstract class DifferentialController extends PhabricatorController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
@ -29,7 +29,7 @@ abstract class DifferentialController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
abstract class DiffusionRepositoryEditController
|
||||
extends DiffusionController {
|
||||
|
||||
public function buildApplicationCrumbs($is_main = false) {
|
||||
protected function buildApplicationCrumbs($is_main = false) {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
if ($this->diffusionRequest) {
|
||||
|
|
|
@ -37,7 +37,7 @@ final class DiffusionRepositoryListController extends DiffusionController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -16,7 +16,7 @@ abstract class DrydockBlueprintController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(
|
||||
pht('Blueprints'),
|
||||
|
|
|
@ -22,7 +22,7 @@ final class DrydockBlueprintListController extends DrydockBlueprintController {
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
DrydockCreateBlueprintsCapability::CAPABILITY);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ abstract class DrydockController extends PhabricatorController {
|
|||
|
||||
abstract function buildSideNavView();
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView()->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ abstract class DrydockLeaseController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(
|
||||
pht('Leases'),
|
||||
|
|
|
@ -16,7 +16,7 @@ abstract class DrydockLogController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(
|
||||
pht('Logs'),
|
||||
|
|
|
@ -16,7 +16,7 @@ abstract class DrydockResourceController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(
|
||||
pht('Resources'),
|
||||
|
|
|
@ -21,7 +21,7 @@ final class PhabricatorFileListController extends PhabricatorFileController {
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$crumbs->addAction(
|
||||
id(new PHUIListItemView())
|
||||
|
|
|
@ -40,7 +40,7 @@ final class FundInitiativeListController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -39,7 +39,7 @@ final class HarbormasterBuildableListController extends HarbormasterController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
abstract class HarbormasterController extends PhabricatorController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
abstract class HarbormasterPlanController extends HarbormasterController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addTextCrumb(
|
||||
|
|
|
@ -40,7 +40,7 @@ final class HarbormasterPlanListController extends HarbormasterPlanController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,11 @@ abstract class HeraldController extends PhabricatorController {
|
|||
return $response->setContent($page->render());
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -23,7 +23,7 @@ final class HeraldTranscriptListController extends HeraldController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addTextCrumb(
|
||||
|
|
|
@ -22,7 +22,7 @@ abstract class LegalpadController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNav(true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ final class LegalpadDocumentListController extends LegalpadController {
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -64,7 +64,7 @@ final class LegalpadDocumentSignatureListController extends LegalpadController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
if ($this->document) {
|
||||
|
|
|
@ -20,7 +20,7 @@ abstract class PhabricatorMacroController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView($for_app = true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -21,11 +21,11 @@ abstract class PhabricatorMailingListsController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -17,7 +17,7 @@ abstract class PhabricatorApplicationsController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ final class PhabricatorOAuthClientListController
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -58,7 +58,7 @@ abstract class PhabricatorOwnersController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView()->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -21,11 +21,11 @@ abstract class PassphraseController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -21,11 +21,11 @@ abstract class PhabricatorPasteController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -28,11 +28,11 @@ abstract class PhabricatorPeopleController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView()->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$viewer = $this->getRequest()->getUser();
|
||||
|
|
|
@ -103,7 +103,7 @@ abstract class PhameController extends PhabricatorController {
|
|||
return $stories;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->renderSideNavFilterView()->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ abstract class PholioController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
@ -33,7 +33,7 @@ abstract class PholioController extends PhabricatorController {
|
|||
return $crumbs;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ final class PhortuneCartListController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$merchant = $this->merchant;
|
||||
|
|
|
@ -61,7 +61,7 @@ final class PhortuneChargeListController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$account = $this->account;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
abstract class PhortuneMerchantController
|
||||
extends PhortuneController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(
|
||||
pht('Merchants'),
|
||||
|
|
|
@ -37,7 +37,7 @@ final class PhortuneMerchantListController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -22,11 +22,11 @@ abstract class PhrictionController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
if (get_class($this) != 'PhrictionListController') {
|
||||
|
|
|
@ -17,7 +17,7 @@ abstract class PonderController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
$crumbs
|
||||
->addAction(
|
||||
|
|
|
@ -22,11 +22,11 @@ final class PhabricatorProjectListController
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
|
|
|
@ -34,7 +34,7 @@ abstract class ReleephController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ final class ReleephBranchViewController extends ReleephBranchController
|
|||
->setViewer($this->getRequest()->getUser());
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$branch = $this->getBranch();
|
||||
|
|
|
@ -21,7 +21,7 @@ final class ReleephProductListController extends ReleephController {
|
|||
return $this->delegateToController($controller);
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -148,7 +148,7 @@ final class ReleephProductViewController extends ReleephProductController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$product = $this->getProduct();
|
||||
|
|
|
@ -151,7 +151,7 @@ final class PhabricatorSettingsMainController
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
$panels = $this->buildPanels();
|
||||
return $this->renderSideNav($panels)->getMenu();
|
||||
}
|
||||
|
|
|
@ -22,11 +22,11 @@ abstract class PhabricatorSlowvoteController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView(true)->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$crumbs->addAction(
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
abstract class PhabricatorTokenController extends PhabricatorController {
|
||||
|
||||
|
||||
protected function buildSideNav() {
|
||||
$nav = new AphrontSideNavFilterView();
|
||||
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
||||
|
@ -14,11 +13,11 @@ abstract class PhabricatorTokenController extends PhabricatorController {
|
|||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationMenu() {
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNav()->getMenu();
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
protected function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
return $crumbs;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue