Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15384248
D8074.id18268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D8074.id18268.diff
View Options
Index: src/__phutil_library_map__.php
===================================================================
--- src/__phutil_library_map__.php
+++ src/__phutil_library_map__.php
@@ -1087,6 +1087,7 @@
'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 @@
'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 @@
'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 @@
'PhabricatorApplicationFlags' => 'PhabricatorApplication',
'PhabricatorApplicationHarbormaster' => 'PhabricatorApplication',
'PhabricatorApplicationHerald' => 'PhabricatorApplication',
+ 'PhabricatorApplicationHome' => 'PhabricatorApplication',
'PhabricatorApplicationLaunchView' => 'AphrontView',
'PhabricatorApplicationLegalpad' => 'PhabricatorApplication',
'PhabricatorApplicationMacro' => 'PhabricatorApplication',
@@ -4010,8 +4012,6 @@
'PhabricatorDifferentialConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorDifferentialRevisionTestDataGenerator' => 'PhabricatorTestDataGenerator',
'PhabricatorDiffusionConfigOptions' => 'PhabricatorApplicationConfigOptions',
- 'PhabricatorDirectoryController' => 'PhabricatorController',
- 'PhabricatorDirectoryMainController' => 'PhabricatorDirectoryController',
'PhabricatorDisabledUserController' => 'PhabricatorAuthController',
'PhabricatorDisqusConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorDraft' => 'PhabricatorDraftDAO',
@@ -4173,6 +4173,8 @@
'PhabricatorHashTestCase' => 'PhabricatorTestCase',
'PhabricatorHelpController' => 'PhabricatorController',
'PhabricatorHelpKeyboardShortcutController' => 'PhabricatorHelpController',
+ 'PhabricatorHomeController' => 'PhabricatorController',
+ 'PhabricatorHomeMainController' => 'PhabricatorHomeController',
'PhabricatorHovercardExample' => 'PhabricatorUIExample',
'PhabricatorHovercardView' => 'AphrontView',
'PhabricatorIRCBot' => 'PhabricatorDaemon',
Index: src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
===================================================================
--- src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
+++ src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
@@ -16,9 +16,6 @@
public function getURIMap() {
return $this->getResourceURIMapRules() + array(
- '/(?:(?P<filter>(?:jump))/)?' =>
- 'PhabricatorDirectoryMainController',
-
'/typeahead/' => array(
'common/(?P<type>\w+)/'
=> 'PhabricatorTypeaheadCommonDatasourceController',
Index: src/applications/home/application/PhabricatorApplicationHome.php
===================================================================
--- /dev/null
+++ src/applications/home/application/PhabricatorApplicationHome.php
@@ -0,0 +1,31 @@
+<?php
+
+final class PhabricatorApplicationHome extends PhabricatorApplication {
+
+ public function getBaseURI() {
+ return '/';
+ }
+
+ public function getShortDescription() {
+ return pht('Where the Heart Is');
+ }
+
+ public function getIconName() {
+ return 'home';
+ }
+
+ public function getRoutes() {
+ return array(
+ '/(?:(?P<filter>(?:jump))/)?' => 'PhabricatorHomeMainController',
+ );
+ }
+
+ public function shouldAppearInLaunchView() {
+ return false;
+ }
+
+ public function canUninstall() {
+ return false;
+ }
+
+}
Index: src/applications/home/controller/PhabricatorHomeController.php
===================================================================
--- src/applications/home/controller/PhabricatorHomeController.php
+++ src/applications/home/controller/PhabricatorHomeController.php
@@ -1,6 +1,6 @@
<?php
-abstract class PhabricatorDirectoryController extends PhabricatorController {
+abstract class PhabricatorHomeController extends PhabricatorController {
public function buildStandardPageResponse($view, array $data) {
$page = $this->buildStandardPageView();
Index: src/applications/home/controller/PhabricatorHomeMainController.php
===================================================================
--- src/applications/home/controller/PhabricatorHomeMainController.php
+++ src/applications/home/controller/PhabricatorHomeMainController.php
@@ -1,7 +1,7 @@
<?php
-final class PhabricatorDirectoryMainController
- extends PhabricatorDirectoryController {
+final class PhabricatorHomeMainController
+ extends PhabricatorHomeController {
private $filter;
private $minipanels = array();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 7:16 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7390912
Default Alt Text
D8074.id18268.diff (6 KB)
Attached To
Mode
D8074: Make "Home" a formal application
Attached
Detach File
Event Timeline
Log In to Comment