Summary:
Ref T5501. This is just getting version detection and availability right, probably.
Eventually, this will get lifted up a bit and "$remedy" will turn into setup issues (or maybe one setup issue saying "your cache setup is messed up, click here to understand why").
Test Plan:
{F362935}
I intend to shove these up to production one-by-one since production is APC and local is Opcache + APCu.
Reviewers: btrahan
Reviewed By: btrahan
Subscribers: epriestley
Maniphest Tasks: T5501
Differential Revision: https://secure.phabricator.com/D12314
64 lines
1.7 KiB
PHP
64 lines
1.7 KiB
PHP
<?php
|
|
|
|
final class PhabricatorConfigApplication extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/config/';
|
|
}
|
|
|
|
public function getFontIcon() {
|
|
return 'fa-sliders';
|
|
}
|
|
|
|
public function isPinnedByDefault(PhabricatorUser $viewer) {
|
|
return $viewer->getIsAdmin();
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x98\xBA";
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_ADMIN;
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return false;
|
|
}
|
|
|
|
public function getName() {
|
|
return 'Config';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Configure Phabricator');
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/config/' => array(
|
|
'' => 'PhabricatorConfigListController',
|
|
'all/' => 'PhabricatorConfigAllController',
|
|
'history/' => 'PhabricatorConfigHistoryController',
|
|
'edit/(?P<key>[\w\.\-]+)/' => 'PhabricatorConfigEditController',
|
|
'group/(?P<key>[^/]+)/' => 'PhabricatorConfigGroupController',
|
|
'welcome/' => 'PhabricatorConfigWelcomeController',
|
|
'database/'.
|
|
'(?:(?P<database>[^/]+)/'.
|
|
'(?:(?P<table>[^/]+)/'.
|
|
'(?:(?:col/(?P<column>[^/]+)|key/(?P<key>[^/]+))/)?)?)?'
|
|
=> 'PhabricatorConfigDatabaseStatusController',
|
|
'dbissue/' => 'PhabricatorConfigDatabaseIssueController',
|
|
'(?P<verb>ignore|unignore)/(?P<key>[^/]+)/'
|
|
=> 'PhabricatorConfigIgnoreController',
|
|
'issue/' => array(
|
|
'' => 'PhabricatorConfigIssueListController',
|
|
'(?P<key>[^/]+)/' => 'PhabricatorConfigIssueViewController',
|
|
),
|
|
'cache/' => 'PhabricatorConfigCacheController',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|