2012-10-01 21:56:33 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationPHPAST extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/xhpast/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAutospriteName() {
|
|
|
|
return 'phpast';
|
|
|
|
}
|
|
|
|
|
|
|
|
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',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|