mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
bd741ffcc7
Summary: Ref T5702. Primarily, this gets the custom DarkConsole URI routes out of the Aphront core and into an Application, like almost all other routes. Test Plan: Used DarkConsole. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5702 Differential Revision: https://secure.phabricator.com/D10695
26 lines
455 B
PHP
26 lines
455 B
PHP
<?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',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|