Differential D19541 Diff 46728 src/applications/differential/application/PhabricatorDifferentialApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/application/PhabricatorDifferentialApplication.php
Show All 37 Lines | final class PhabricatorDifferentialApplication extends PhabricatorApplication { | ||||
public function getOverview() { | public function getOverview() { | ||||
return pht( | return pht( | ||||
'Differential is a **code review application** which allows '. | 'Differential is a **code review application** which allows '. | ||||
'engineers to review, discuss and approve changes to software.'); | 'engineers to review, discuss and approve changes to software.'); | ||||
} | } | ||||
public function getRoutes() { | public function getRoutes() { | ||||
return array( | return array( | ||||
'/D(?P<id>[1-9]\d*)' => 'DifferentialRevisionViewController', | '/D(?P<id>[1-9]\d*)' => array( | ||||
'' => 'DifferentialRevisionViewController', | |||||
'/(?P<filter>new)/' => 'DifferentialRevisionViewController', | |||||
), | |||||
'/differential/' => array( | '/differential/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' | '(?:query/(?P<queryKey>[^/]+)/)?' | ||||
=> 'DifferentialRevisionListController', | => 'DifferentialRevisionListController', | ||||
'diff/' => array( | 'diff/' => array( | ||||
'(?P<id>[1-9]\d*)/' => array( | '(?P<id>[1-9]\d*)/' => array( | ||||
'' => 'DifferentialDiffViewController', | '' => 'DifferentialDiffViewController', | ||||
'changesets/' => array( | 'changesets/' => array( | ||||
$this->getQueryRoutePattern() | $this->getQueryRoutePattern() | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |