Modularize global quick create builtin items

Summary: Ref T5867. Instead of hard-coding projects, tasks and repositories, let EditEngines say "I want a quick create item" so third-party code can also hook into the menu without upstream changes.

Test Plan: Saw same default items in menu.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T5867

Differential Revision: https://secure.phabricator.com/D17215
This commit is contained in:
epriestley
2017-01-17 14:17:24 -08:00
parent a886969c48
commit 9d3f09ab47
7 changed files with 51 additions and 112 deletions

View File

@@ -20,6 +20,10 @@ final class DiffusionRepositoryEditEngine
return false;
}
public function isDefaultQuickCreateEngine() {
return true;
}
public function getEngineName() {
return pht('Repositories');
}