2012-10-01 21:56:33 +02:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 02:03:09 +02:00
|
|
|
final class PhabricatorPHPASTApplication extends PhabricatorApplication {
|
2012-10-01 21:56:33 +02:00
|
|
|
|
2014-07-23 17:15:44 +02:00
|
|
|
public function getName() {
|
|
|
|
return pht('PHPAST');
|
|
|
|
}
|
|
|
|
|
2012-10-01 21:56:33 +02:00
|
|
|
public function getBaseURI() {
|
|
|
|
return '/xhpast/';
|
|
|
|
}
|
|
|
|
|
2015-01-25 08:41:43 +01:00
|
|
|
public function getFontIcon() {
|
2015-01-25 09:22:57 +01:00
|
|
|
return 'fa-ambulance';
|
2012-10-01 21:56:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
|
|
|
return 'Visual PHP Parser';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTitleGlyph() {
|
|
|
|
return "\xE2\x96\xA0";
|
|
|
|
}
|
|
|
|
|
2012-10-04 00:46:19 +02:00
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_DEVELOPER;
|
|
|
|
}
|
|
|
|
|
2012-10-01 21:56:33 +02:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/xhpast/' => array(
|
|
|
|
'' => 'PhabricatorXHPASTViewRunController',
|
2012-10-06 01:06:16 +02:00
|
|
|
'view/(?P<id>[1-9]\d*)/'
|
2012-10-01 21:56:33 +02:00
|
|
|
=> 'PhabricatorXHPASTViewFrameController',
|
2012-10-06 01:06:16 +02:00
|
|
|
'frameset/(?P<id>[1-9]\d*)/'
|
2012-10-01 21:56:33 +02:00
|
|
|
=> 'PhabricatorXHPASTViewFramesetController',
|
2012-10-06 01:06:16 +02:00
|
|
|
'input/(?P<id>[1-9]\d*)/'
|
2012-10-01 21:56:33 +02:00
|
|
|
=> 'PhabricatorXHPASTViewInputController',
|
2012-10-06 01:06:16 +02:00
|
|
|
'tree/(?P<id>[1-9]\d*)/'
|
2012-10-01 21:56:33 +02:00
|
|
|
=> 'PhabricatorXHPASTViewTreeController',
|
2012-10-06 01:06:16 +02:00
|
|
|
'stream/(?P<id>[1-9]\d*)/'
|
2012-10-01 21:56:33 +02:00
|
|
|
=> 'PhabricatorXHPASTViewStreamController',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|