Differential D13064 Diff 31527 src/applications/diviner/application/PhabricatorDivinerApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/application/PhabricatorDivinerApplication.php
| Show All 31 Lines | final class PhabricatorDivinerApplication extends PhabricatorApplication { | ||||
| } | } | ||||
| public function getRoutes() { | public function getRoutes() { | ||||
| return array( | return array( | ||||
| '/diviner/' => array( | '/diviner/' => array( | ||||
| '' => 'DivinerMainController', | '' => 'DivinerMainController', | ||||
| 'query/((?<key>[^/]+)/)?' => 'DivinerAtomListController', | 'query/((?<key>[^/]+)/)?' => 'DivinerAtomListController', | ||||
| 'find/' => 'DivinerFindController', | 'find/' => 'DivinerFindController', | ||||
| ), | |||||
| '/book/(?P<book>[^/]+)/' => 'DivinerBookController', | 'book/(?P<book>[^/]+)/' => 'DivinerBookController', | ||||
| '/book/'. | 'book/'. | ||||
| '(?P<book>[^/]+)/'. | '(?P<book>[^/]+)/'. | ||||
| '(?P<type>[^/]+)/'. | '(?P<type>[^/]+)/'. | ||||
| '(?:(?P<context>[^/]+)/)?'. | '(?:(?P<context>[^/]+)/)?'. | ||||
| '(?P<name>[^/]+)/'. | '(?P<name>[^/]+)/'. | ||||
| '(?:(?P<index>\d+)/)?' => 'DivinerAtomController', | '(?:(?P<index>\d+)/)?' => 'DivinerAtomController', | ||||
| ), | |||||
| ); | ); | ||||
| } | } | ||||
| public function getApplicationGroup() { | public function getApplicationGroup() { | ||||
| return self::GROUP_UTILITIES; | return self::GROUP_UTILITIES; | ||||
| } | } | ||||
| public function getRemarkupRules() { | public function getRemarkupRules() { | ||||
| return array( | return array( | ||||
| new DivinerSymbolRemarkupRule(), | new DivinerSymbolRemarkupRule(), | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||