diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 42c34e6f5f..311b68e461 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1087,6 +1087,7 @@ phutil_register_library_map(array( 'PhabricatorApplicationFlags' => 'applications/flag/application/PhabricatorApplicationFlags.php', 'PhabricatorApplicationHarbormaster' => 'applications/harbormaster/application/PhabricatorApplicationHarbormaster.php', 'PhabricatorApplicationHerald' => 'applications/herald/application/PhabricatorApplicationHerald.php', + 'PhabricatorApplicationHome' => 'applications/home/application/PhabricatorApplicationHome.php', 'PhabricatorApplicationLaunchView' => 'applications/meta/view/PhabricatorApplicationLaunchView.php', 'PhabricatorApplicationLegalpad' => 'applications/legalpad/application/PhabricatorApplicationLegalpad.php', 'PhabricatorApplicationMacro' => 'applications/macro/application/PhabricatorApplicationMacro.php', @@ -1385,8 +1386,6 @@ phutil_register_library_map(array( 'PhabricatorDifferentialConfigOptions' => 'applications/differential/config/PhabricatorDifferentialConfigOptions.php', 'PhabricatorDifferentialRevisionTestDataGenerator' => 'applications/differential/lipsum/PhabricatorDifferentialRevisionTestDataGenerator.php', 'PhabricatorDiffusionConfigOptions' => 'applications/diffusion/config/PhabricatorDiffusionConfigOptions.php', - 'PhabricatorDirectoryController' => 'applications/directory/controller/PhabricatorDirectoryController.php', - 'PhabricatorDirectoryMainController' => 'applications/directory/controller/PhabricatorDirectoryMainController.php', 'PhabricatorDisabledUserController' => 'applications/auth/controller/PhabricatorDisabledUserController.php', 'PhabricatorDisqusConfigOptions' => 'applications/config/option/PhabricatorDisqusConfigOptions.php', 'PhabricatorDraft' => 'applications/draft/storage/PhabricatorDraft.php', @@ -1528,6 +1527,8 @@ phutil_register_library_map(array( 'PhabricatorHashTestCase' => 'infrastructure/util/__tests__/PhabricatorHashTestCase.php', 'PhabricatorHelpController' => 'applications/help/controller/PhabricatorHelpController.php', 'PhabricatorHelpKeyboardShortcutController' => 'applications/help/controller/PhabricatorHelpKeyboardShortcutController.php', + 'PhabricatorHomeController' => 'applications/home/controller/PhabricatorHomeController.php', + 'PhabricatorHomeMainController' => 'applications/home/controller/PhabricatorHomeMainController.php', 'PhabricatorHovercardExample' => 'applications/uiexample/examples/PhabricatorHovercardExample.php', 'PhabricatorHovercardView' => 'view/widget/hovercard/PhabricatorHovercardView.php', 'PhabricatorIRCBot' => 'infrastructure/daemon/bot/PhabricatorIRCBot.php', @@ -3671,6 +3672,7 @@ phutil_register_library_map(array( 'PhabricatorApplicationFlags' => 'PhabricatorApplication', 'PhabricatorApplicationHarbormaster' => 'PhabricatorApplication', 'PhabricatorApplicationHerald' => 'PhabricatorApplication', + 'PhabricatorApplicationHome' => 'PhabricatorApplication', 'PhabricatorApplicationLaunchView' => 'AphrontView', 'PhabricatorApplicationLegalpad' => 'PhabricatorApplication', 'PhabricatorApplicationMacro' => 'PhabricatorApplication', @@ -4010,8 +4012,6 @@ phutil_register_library_map(array( 'PhabricatorDifferentialConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorDifferentialRevisionTestDataGenerator' => 'PhabricatorTestDataGenerator', 'PhabricatorDiffusionConfigOptions' => 'PhabricatorApplicationConfigOptions', - 'PhabricatorDirectoryController' => 'PhabricatorController', - 'PhabricatorDirectoryMainController' => 'PhabricatorDirectoryController', 'PhabricatorDisabledUserController' => 'PhabricatorAuthController', 'PhabricatorDisqusConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorDraft' => 'PhabricatorDraftDAO', @@ -4173,6 +4173,8 @@ phutil_register_library_map(array( 'PhabricatorHashTestCase' => 'PhabricatorTestCase', 'PhabricatorHelpController' => 'PhabricatorController', 'PhabricatorHelpKeyboardShortcutController' => 'PhabricatorHelpController', + 'PhabricatorHomeController' => 'PhabricatorController', + 'PhabricatorHomeMainController' => 'PhabricatorHomeController', 'PhabricatorHovercardExample' => 'PhabricatorUIExample', 'PhabricatorHovercardView' => 'AphrontView', 'PhabricatorIRCBot' => 'PhabricatorDaemon', diff --git a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php index 7523a04821..26b9e9fc28 100644 --- a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php +++ b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php @@ -16,9 +16,6 @@ class AphrontDefaultApplicationConfiguration public function getURIMap() { return $this->getResourceURIMapRules() + array( - '/(?:(?P(?:jump))/)?' => - 'PhabricatorDirectoryMainController', - '/typeahead/' => array( 'common/(?P\w+)/' => 'PhabricatorTypeaheadCommonDatasourceController', diff --git a/src/applications/home/application/PhabricatorApplicationHome.php b/src/applications/home/application/PhabricatorApplicationHome.php new file mode 100644 index 0000000000..628bf9c3d9 --- /dev/null +++ b/src/applications/home/application/PhabricatorApplicationHome.php @@ -0,0 +1,31 @@ +(?:jump))/)?' => 'PhabricatorHomeMainController', + ); + } + + public function shouldAppearInLaunchView() { + return false; + } + + public function canUninstall() { + return false; + } + +} diff --git a/src/applications/directory/controller/PhabricatorDirectoryController.php b/src/applications/home/controller/PhabricatorHomeController.php similarity index 98% rename from src/applications/directory/controller/PhabricatorDirectoryController.php rename to src/applications/home/controller/PhabricatorHomeController.php index 07df8c8589..ffbdfa6272 100644 --- a/src/applications/directory/controller/PhabricatorDirectoryController.php +++ b/src/applications/home/controller/PhabricatorHomeController.php @@ -1,6 +1,6 @@ buildStandardPageView(); diff --git a/src/applications/directory/controller/PhabricatorDirectoryMainController.php b/src/applications/home/controller/PhabricatorHomeMainController.php similarity index 99% rename from src/applications/directory/controller/PhabricatorDirectoryMainController.php rename to src/applications/home/controller/PhabricatorHomeMainController.php index 8b59c6c928..30b7096e61 100644 --- a/src/applications/directory/controller/PhabricatorDirectoryMainController.php +++ b/src/applications/home/controller/PhabricatorHomeMainController.php @@ -1,7 +1,7 @@