[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/celerity/application/ -> PhabricatorCelerityApplication.php (source)

   1  <?php
   2  
   3  final class PhabricatorCelerityApplication extends PhabricatorApplication {
   4  
   5    public function getName() {
   6      return pht('Celerity');
   7    }
   8  
   9    public function canUninstall() {
  10      return false;
  11    }
  12  
  13    public function isUnlisted() {
  14      return true;
  15    }
  16  
  17    public function getRoutes() {
  18      $extensions = CelerityResourceController::getSupportedResourceTypes();
  19      $extensions = array_keys($extensions);
  20      $extensions = implode('|', $extensions);
  21  
  22      return array(
  23        '/res/' => array(
  24          '(?:(?P<mtime>[0-9]+)T/)?'.
  25          '(?P<library>[^/]+)/'.
  26          '(?P<hash>[a-f0-9]{8})/'.
  27          '(?P<path>.+\.(?:'.$extensions.'))'
  28            => 'CelerityPhabricatorResourceController',
  29        ),
  30      );
  31    }
  32  
  33  }


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