Page MenuHomePhabricator

D10695.id25671.diff
No OneTemporary

D10695.id25671.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -185,18 +185,18 @@
'ConpherenceViewController' => 'applications/conpherence/controller/ConpherenceViewController.php',
'ConpherenceWidgetController' => 'applications/conpherence/controller/ConpherenceWidgetController.php',
'ConpherenceWidgetView' => 'applications/conpherence/view/ConpherenceWidgetView.php',
- 'DarkConsoleController' => 'aphront/console/DarkConsoleController.php',
- 'DarkConsoleCore' => 'aphront/console/DarkConsoleCore.php',
- 'DarkConsoleDataController' => 'aphront/console/DarkConsoleDataController.php',
- 'DarkConsoleErrorLogPlugin' => 'aphront/console/plugin/DarkConsoleErrorLogPlugin.php',
- 'DarkConsoleErrorLogPluginAPI' => 'aphront/console/plugin/errorlog/DarkConsoleErrorLogPluginAPI.php',
- 'DarkConsoleEventPlugin' => 'aphront/console/plugin/DarkConsoleEventPlugin.php',
- 'DarkConsoleEventPluginAPI' => 'aphront/console/plugin/event/DarkConsoleEventPluginAPI.php',
- 'DarkConsolePlugin' => 'aphront/console/plugin/DarkConsolePlugin.php',
- 'DarkConsoleRequestPlugin' => 'aphront/console/plugin/DarkConsoleRequestPlugin.php',
- 'DarkConsoleServicesPlugin' => 'aphront/console/plugin/DarkConsoleServicesPlugin.php',
- 'DarkConsoleXHProfPlugin' => 'aphront/console/plugin/DarkConsoleXHProfPlugin.php',
- 'DarkConsoleXHProfPluginAPI' => 'aphront/console/plugin/xhprof/DarkConsoleXHProfPluginAPI.php',
+ 'DarkConsoleController' => 'applications/console/controller/DarkConsoleController.php',
+ 'DarkConsoleCore' => 'applications/console/core/DarkConsoleCore.php',
+ 'DarkConsoleDataController' => 'applications/console/controller/DarkConsoleDataController.php',
+ 'DarkConsoleErrorLogPlugin' => 'applications/console/plugin/DarkConsoleErrorLogPlugin.php',
+ 'DarkConsoleErrorLogPluginAPI' => 'applications/console/plugin/errorlog/DarkConsoleErrorLogPluginAPI.php',
+ 'DarkConsoleEventPlugin' => 'applications/console/plugin/DarkConsoleEventPlugin.php',
+ 'DarkConsoleEventPluginAPI' => 'applications/console/plugin/event/DarkConsoleEventPluginAPI.php',
+ 'DarkConsolePlugin' => 'applications/console/plugin/DarkConsolePlugin.php',
+ 'DarkConsoleRequestPlugin' => 'applications/console/plugin/DarkConsoleRequestPlugin.php',
+ 'DarkConsoleServicesPlugin' => 'applications/console/plugin/DarkConsoleServicesPlugin.php',
+ 'DarkConsoleXHProfPlugin' => 'applications/console/plugin/DarkConsoleXHProfPlugin.php',
+ 'DarkConsoleXHProfPluginAPI' => 'applications/console/plugin/xhprof/DarkConsoleXHProfPluginAPI.php',
'DatabaseConfigurationProvider' => 'infrastructure/storage/configuration/DatabaseConfigurationProvider.php',
'DefaultDatabaseConfigurationProvider' => 'infrastructure/storage/configuration/DefaultDatabaseConfigurationProvider.php',
'DifferentialAction' => 'applications/differential/constants/DifferentialAction.php',
@@ -1401,6 +1401,7 @@
'PhabricatorConfigWelcomeController' => 'applications/config/controller/PhabricatorConfigWelcomeController.php',
'PhabricatorConpherenceApplication' => 'applications/conpherence/application/PhabricatorConpherenceApplication.php',
'PhabricatorConpherenceThreadPHIDType' => 'applications/conpherence/phid/PhabricatorConpherenceThreadPHIDType.php',
+ 'PhabricatorConsoleApplication' => 'applications/console/application/PhabricatorConsoleApplication.php',
'PhabricatorContentSource' => 'applications/metamta/contentsource/PhabricatorContentSource.php',
'PhabricatorContentSourceView' => 'applications/metamta/contentsource/PhabricatorContentSourceView.php',
'PhabricatorController' => 'applications/base/controller/PhabricatorController.php',
@@ -4372,6 +4373,7 @@
'PhabricatorConfigWelcomeController' => 'PhabricatorConfigController',
'PhabricatorConpherenceApplication' => 'PhabricatorApplication',
'PhabricatorConpherenceThreadPHIDType' => 'PhabricatorPHIDType',
+ 'PhabricatorConsoleApplication' => 'PhabricatorApplication',
'PhabricatorContentSourceView' => 'AphrontView',
'PhabricatorController' => 'AphrontController',
'PhabricatorCookies' => 'Phobject',
diff --git a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
--- a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
+++ b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
@@ -15,12 +15,7 @@
}
public function getURIMap() {
- return $this->getResourceURIMapRules() + array(
- '/~/' => array(
- '' => 'DarkConsoleController',
- 'data/(?P<key>[^/]+)/' => 'DarkConsoleDataController',
- ),
- );
+ return $this->getResourceURIMapRules();
}
protected function getResourceURIMapRules() {
diff --git a/src/applications/console/application/PhabricatorConsoleApplication.php b/src/applications/console/application/PhabricatorConsoleApplication.php
new file mode 100644
--- /dev/null
+++ b/src/applications/console/application/PhabricatorConsoleApplication.php
@@ -0,0 +1,26 @@
+<?php
+
+final class PhabricatorConsoleApplication extends PhabricatorApplication {
+
+ public function getName() {
+ return pht('Console');
+ }
+
+ public function canUninstall() {
+ return false;
+ }
+
+ public function isUnlisted() {
+ return true;
+ }
+
+ public function getRoutes() {
+ return array(
+ '/~/' => array(
+ '' => 'DarkConsoleController',
+ 'data/(?P<key>[^/]+)/' => 'DarkConsoleDataController',
+ ),
+ );
+ }
+
+}
diff --git a/src/aphront/console/DarkConsoleController.php b/src/applications/console/controller/DarkConsoleController.php
rename from src/aphront/console/DarkConsoleController.php
rename to src/applications/console/controller/DarkConsoleController.php
diff --git a/src/aphront/console/DarkConsoleDataController.php b/src/applications/console/controller/DarkConsoleDataController.php
rename from src/aphront/console/DarkConsoleDataController.php
rename to src/applications/console/controller/DarkConsoleDataController.php
diff --git a/src/aphront/console/DarkConsoleCore.php b/src/applications/console/core/DarkConsoleCore.php
rename from src/aphront/console/DarkConsoleCore.php
rename to src/applications/console/core/DarkConsoleCore.php
diff --git a/src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php b/src/applications/console/plugin/DarkConsoleErrorLogPlugin.php
rename from src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php
rename to src/applications/console/plugin/DarkConsoleErrorLogPlugin.php
diff --git a/src/aphront/console/plugin/DarkConsoleEventPlugin.php b/src/applications/console/plugin/DarkConsoleEventPlugin.php
rename from src/aphront/console/plugin/DarkConsoleEventPlugin.php
rename to src/applications/console/plugin/DarkConsoleEventPlugin.php
diff --git a/src/aphront/console/plugin/DarkConsolePlugin.php b/src/applications/console/plugin/DarkConsolePlugin.php
rename from src/aphront/console/plugin/DarkConsolePlugin.php
rename to src/applications/console/plugin/DarkConsolePlugin.php
diff --git a/src/aphront/console/plugin/DarkConsoleRequestPlugin.php b/src/applications/console/plugin/DarkConsoleRequestPlugin.php
rename from src/aphront/console/plugin/DarkConsoleRequestPlugin.php
rename to src/applications/console/plugin/DarkConsoleRequestPlugin.php
diff --git a/src/aphront/console/plugin/DarkConsoleServicesPlugin.php b/src/applications/console/plugin/DarkConsoleServicesPlugin.php
rename from src/aphront/console/plugin/DarkConsoleServicesPlugin.php
rename to src/applications/console/plugin/DarkConsoleServicesPlugin.php
diff --git a/src/aphront/console/plugin/DarkConsoleXHProfPlugin.php b/src/applications/console/plugin/DarkConsoleXHProfPlugin.php
rename from src/aphront/console/plugin/DarkConsoleXHProfPlugin.php
rename to src/applications/console/plugin/DarkConsoleXHProfPlugin.php
diff --git a/src/aphront/console/plugin/errorlog/DarkConsoleErrorLogPluginAPI.php b/src/applications/console/plugin/errorlog/DarkConsoleErrorLogPluginAPI.php
rename from src/aphront/console/plugin/errorlog/DarkConsoleErrorLogPluginAPI.php
rename to src/applications/console/plugin/errorlog/DarkConsoleErrorLogPluginAPI.php
diff --git a/src/aphront/console/plugin/event/DarkConsoleEventPluginAPI.php b/src/applications/console/plugin/event/DarkConsoleEventPluginAPI.php
rename from src/aphront/console/plugin/event/DarkConsoleEventPluginAPI.php
rename to src/applications/console/plugin/event/DarkConsoleEventPluginAPI.php
diff --git a/src/aphront/console/plugin/xhprof/DarkConsoleXHProfPluginAPI.php b/src/applications/console/plugin/xhprof/DarkConsoleXHProfPluginAPI.php
rename from src/aphront/console/plugin/xhprof/DarkConsoleXHProfPluginAPI.php
rename to src/applications/console/plugin/xhprof/DarkConsoleXHProfPluginAPI.php

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 11, 12:15 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7483381
Default Alt Text
D10695.id25671.diff (8 KB)

Event Timeline