Prepare Profile Panels for adoption in other applications

Summary: Ref T10054. Take specialization off the objects and put it on Engine subclasses instead. One reason for this is that certain objects (like users) might have multiple different sets of panels in the future (e.g., their user profile and their home page).

Test Plan:
  - No user-visible changes.
  - PanelEngine no longer has any hardcoded "project" stuff.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10054

Differential Revision: https://secure.phabricator.com/D15018
This commit is contained in:
epriestley
2016-01-14 05:59:25 -08:00
parent c019f76283
commit 2a6b2dbbfd
11 changed files with 71 additions and 76 deletions

View File

@@ -102,7 +102,7 @@ abstract class PhabricatorProjectController extends PhabricatorController {
if ($project) {
$viewer = $this->getViewer();
$engine = id(new PhabricatorProfilePanelEngine())
$engine = id(new PhabricatorProjectProfilePanelEngine())
->setViewer($viewer)
->setProfileObject($project);