Rename "PanelEngine" to "MenuEngine"
Summary: Ref T11957. Test Plan: Grepped for "PanelEngine", renamed everything except "PanelEditEngine". Grepped for these changed symbols: ``` ispanelengineconfigurable getprofilepanelengine setprofilepanelengine setpanelengine getpanelengine PhabricatorProfilePanelEditEngine ``` Reviewers: chad Reviewed By: chad Maniphest Tasks: T11957 Differential Revision: https://secure.phabricator.com/D17025
This commit is contained in:
@@ -4,7 +4,7 @@ abstract class PhabricatorProjectController extends PhabricatorController {
|
||||
|
||||
private $project;
|
||||
private $profileMenu;
|
||||
private $profilePanelEngine;
|
||||
private $profileMenuEngine;
|
||||
|
||||
protected function setProject(PhabricatorProject $project) {
|
||||
$this->project = $project;
|
||||
@@ -99,7 +99,7 @@ abstract class PhabricatorProjectController extends PhabricatorController {
|
||||
|
||||
protected function getProfileMenu() {
|
||||
if (!$this->profileMenu) {
|
||||
$engine = $this->getProfilePanelEngine();
|
||||
$engine = $this->getProfileMenuEngine();
|
||||
if ($engine) {
|
||||
$this->profileMenu = $engine->buildNavigation();
|
||||
}
|
||||
@@ -127,24 +127,25 @@ abstract class PhabricatorProjectController extends PhabricatorController {
|
||||
return $crumbs;
|
||||
}
|
||||
|
||||
protected function getProfilePanelEngine() {
|
||||
if (!$this->profilePanelEngine) {
|
||||
protected function getProfileMenuEngine() {
|
||||
if (!$this->profileMenuEngine) {
|
||||
$viewer = $this->getViewer();
|
||||
$project = $this->getProject();
|
||||
if ($project) {
|
||||
$engine = id(new PhabricatorProjectProfilePanelEngine())
|
||||
$engine = id(new PhabricatorProjectProfileMenuEngine())
|
||||
->setViewer($viewer)
|
||||
->setController($this)
|
||||
->setProfileObject($project);
|
||||
$this->profilePanelEngine = $engine;
|
||||
$this->profileMenuEngine = $engine;
|
||||
}
|
||||
}
|
||||
return $this->profilePanelEngine;
|
||||
|
||||
return $this->profileMenuEngine;
|
||||
}
|
||||
|
||||
protected function setProfilePanelEngine(
|
||||
PhabricatorProjectProfilePanelEngine $engine) {
|
||||
$this->profilePanelEngine = $engine;
|
||||
protected function setProfileMenuEngine(
|
||||
PhabricatorProjectProfileMenuEngine $engine) {
|
||||
$this->profileMenuEngine = $engine;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user