[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/releeph/application/ -> PhabricatorReleephApplication.php (source)

   1  <?php
   2  
   3  final class PhabricatorReleephApplication extends PhabricatorApplication {
   4  
   5    public function getName() {
   6      return pht('Releeph');
   7    }
   8  
   9    public function getShortDescription() {
  10      return pht('Pull Requests');
  11    }
  12  
  13    public function getBaseURI() {
  14      return '/releeph/';
  15    }
  16  
  17    public function getIconName() {
  18      return 'releeph';
  19    }
  20  
  21    public function isPrototype() {
  22      return true;
  23    }
  24  
  25    public function getRoutes() {
  26      return array(
  27        '/Y(?P<requestID>[1-9]\d*)' => 'ReleephRequestViewController',
  28  
  29        // TODO: Remove these older routes eventually.
  30        '/RQ(?P<requestID>[1-9]\d*)' => 'ReleephRequestViewController',
  31        '/releeph/request/(?P<requestID>[1-9]\d*)/'
  32          => 'ReleephRequestViewController',
  33  
  34        '/releeph/' => array(
  35          '' => 'ReleephProductListController',
  36          '(?:product|project)/' => array(
  37            '(?:query/(?P<queryKey>[^/]+)/)?' => 'ReleephProductListController',
  38            'create/' => 'ReleephProductCreateController',
  39            '(?P<projectID>[1-9]\d*)/' => array(
  40              '(?:query/(?P<queryKey>[^/]+)/)?' => 'ReleephProductViewController',
  41              'edit/' => 'ReleephProductEditController',
  42              'cutbranch/' => 'ReleephBranchCreateController',
  43              'action/(?P<action>.+)/' => 'ReleephProductActionController',
  44              'history/' => 'ReleephProductHistoryController',
  45            ),
  46          ),
  47  
  48          'branch/' => array(
  49            'edit/(?P<branchID>[1-9]\d*)/'
  50              => 'ReleephBranchEditController',
  51            '(?P<action>close|re-open)/(?P<branchID>[1-9]\d*)/'
  52              => 'ReleephBranchAccessController',
  53            'preview/' => 'ReleephBranchNamePreviewController',
  54            '(?P<branchID>[1-9]\d*)/' => array(
  55              'history/' => 'ReleephBranchHistoryController',
  56              '(?:query/(?P<queryKey>[^/]+)/)?' => 'ReleephBranchViewController',
  57            ),
  58            'pull/(?P<branchID>[1-9]\d*)/'
  59              => 'ReleephRequestEditController',
  60          ),
  61  
  62          'request/' => array(
  63            'create/' => 'ReleephRequestEditController',
  64            'differentialcreate/' => array(
  65              'D(?P<diffRevID>[1-9]\d*)' =>
  66                'ReleephRequestDifferentialCreateController',
  67            ),
  68            'edit/(?P<requestID>[1-9]\d*)/'
  69              => 'ReleephRequestEditController',
  70            'action/(?P<action>.+)/(?P<requestID>[1-9]\d*)/'
  71              => 'ReleephRequestActionController',
  72            'typeahead/' =>
  73              'ReleephRequestTypeaheadController',
  74            'comment/(?P<requestID>[1-9]\d*)/'
  75              => 'ReleephRequestCommentController',
  76          ),
  77        ),
  78      );
  79    }
  80  
  81  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1