2012-12-27 15:20:09 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationConfig extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/config/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIconName() {
|
2012-12-30 15:36:06 -08:00
|
|
|
return 'setup';
|
2012-12-27 15:20:09 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getTitleGlyph() {
|
|
|
|
return "\xE2\x98\xBA";
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_ADMIN;
|
|
|
|
}
|
|
|
|
|
2013-01-29 09:14:03 -08:00
|
|
|
public function canUninstall() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-12-27 15:20:09 -08:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/config/' => array(
|
2012-12-30 06:37:49 -08:00
|
|
|
'' => 'PhabricatorConfigListController',
|
2013-01-16 11:10:41 -08:00
|
|
|
'all/' => 'PhabricatorConfigAllController',
|
2012-12-27 15:20:09 -08:00
|
|
|
'edit/(?P<key>[\w\.\-]+)/' => 'PhabricatorConfigEditController',
|
2012-12-30 15:36:06 -08:00
|
|
|
'group/(?P<key>[^/]+)/' => 'PhabricatorConfigGroupController',
|
2013-03-06 14:14:09 -08:00
|
|
|
'(?P<verb>ignore|unignore)/(?P<key>[^/]+)/'
|
|
|
|
=> 'PhabricatorConfigIgnoreController',
|
2012-12-30 06:37:49 -08:00
|
|
|
'issue/' => array(
|
|
|
|
'' => 'PhabricatorConfigIssueListController',
|
|
|
|
'(?P<key>[^/]+)/' => 'PhabricatorConfigIssueViewController',
|
|
|
|
),
|
2012-12-27 15:20:09 -08:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|