Rename PhabricatorApplication subclasses

Summary: Ref T5655. Some discussion in D9839. Generally speaking, `Phabricator{$name}Application` is clearer than `PhabricatorApplication{$name}`.

Test Plan:
# Pinned and uninstalled some applications.
# Applied patch and performed migrations.
# Verified that the pinned applications were still pinned and that the uninstalled applications were still uninstalled.
# Performed a sanity check on the database contents.

Reviewers: btrahan, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: hach-que, epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D9982
This commit is contained in:
Joshua Spence
2014-07-23 10:03:09 +10:00
parent 1649cf94f4
commit 86c399b657
295 changed files with 918 additions and 978 deletions

View File

@@ -1,7 +1,6 @@
<?php
final class PhabricatorHomeMainController
extends PhabricatorHomeController {
final class PhabricatorHomeMainController extends PhabricatorHomeController {
private $only;
private $minipanels = array();
@@ -25,7 +24,7 @@ final class PhabricatorHomeMainController
if (!$dashboard) {
$dashboard = PhabricatorDashboardInstall::getDashboard(
$user,
PhabricatorApplicationHome::DASHBOARD_DEFAULT,
PhabricatorHomeApplication::DASHBOARD_DEFAULT,
get_class($this->getCurrentApplication()));
}
@@ -65,15 +64,15 @@ final class PhabricatorHomeMainController
$viewer = $this->getRequest()->getUser();
$has_maniphest = PhabricatorApplication::isClassInstalledForViewer(
'PhabricatorApplicationManiphest',
'PhabricatorManiphestApplication',
$viewer);
$has_audit = PhabricatorApplication::isClassInstalledForViewer(
'PhabricatorApplicationAudit',
'PhabricatorAuditApplication',
$viewer);
$has_differential = PhabricatorApplication::isClassInstalledForViewer(
'PhabricatorApplicationDifferential',
'PhabricatorDifferentialApplication',
$viewer);
if ($has_maniphest) {