Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / settings / application / PhabricatorSettingsApplication.php
blob879130677e1ad2c62e478e23f740dc430483a126
1 <?php
3 final class PhabricatorSettingsApplication extends PhabricatorApplication {
5 public function getBaseURI() {
6 return '/settings/';
9 public function getName() {
10 return pht('Settings');
13 public function getShortDescription() {
14 return pht('User Preferences');
17 public function getIcon() {
18 return 'fa-wrench';
21 public function canUninstall() {
22 return false;
25 public function getRoutes() {
26 $panel_pattern = '(?:page/(?P<pageKey>[^/]+)/)?';
28 return array(
29 '/settings/' => array(
30 $this->getQueryRoutePattern() => 'PhabricatorSettingsListController',
31 'user/(?P<username>[^/]+)/'.$panel_pattern
32 => 'PhabricatorSettingsMainController',
33 'builtin/(?P<builtin>global)/'.$panel_pattern
34 => 'PhabricatorSettingsMainController',
35 'panel/(?P<panel>[^/]+)/'
36 => 'PhabricatorSettingsMainController',
37 'adjust/' => 'PhabricatorSettingsAdjustController',
38 'timezone/(?P<offset>[^/]+)/'
39 => 'PhabricatorSettingsTimezoneController',
40 'issue/' => 'PhabricatorSettingsIssueController',
45 public function getApplicationGroup() {
46 return self::GROUP_UTILITIES;