Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/application/PhabricatorPonderApplication.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | final class PhabricatorPonderApplication extends PhabricatorApplication { | ||||
} | } | ||||
public function isPrototype() { | public function isPrototype() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getRoutes() { | public function getRoutes() { | ||||
return array( | return array( | ||||
'/Q(?P<id>[1-9]\d*)' => 'PonderQuestionViewController', | '/Q(?P<id>[1-9]\d*)' | ||||
=> 'PonderQuestionViewController', | |||||
'/ponder/' => array( | '/ponder/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PonderQuestionListController', | '(?:query/(?P<queryKey>[^/]+)/)?' | ||||
'answer/add/' => 'PonderAnswerSaveController', | => 'PonderQuestionListController', | ||||
'answer/edit/(?P<id>\d+)/' => 'PonderAnswerEditController', | 'answer/add/' | ||||
'answer/comment/(?P<id>\d+)/' => 'PonderAnswerCommentController', | => 'PonderAnswerSaveController', | ||||
'answer/history/(?P<id>\d+)/' => 'PonderAnswerHistoryController', | 'answer/edit/(?P<id>\d+)/' | ||||
'question/edit/(?:(?P<id>\d+)/)?' => 'PonderQuestionEditController', | => 'PonderAnswerEditController', | ||||
'question/comment/(?P<id>\d+)/' => 'PonderQuestionCommentController', | 'answer/comment/(?P<id>\d+)/' | ||||
'question/history/(?P<id>\d+)/' => 'PonderQuestionHistoryController', | => 'PonderAnswerCommentController', | ||||
'preview/' => 'PhabricatorMarkupPreviewController', | 'answer/history/(?P<id>\d+)/' | ||||
=> 'PonderAnswerHistoryController', | |||||
'question/edit/(?:(?P<id>\d+)/)?' | |||||
=> 'PonderQuestionEditController', | |||||
'question/create/' | |||||
=> 'PonderQuestionEditController', | |||||
'question/comment/(?P<id>\d+)/' | |||||
=> 'PonderQuestionCommentController', | |||||
'question/history/(?P<id>\d+)/' | |||||
=> 'PonderQuestionHistoryController', | |||||
'preview/' | |||||
=> 'PhabricatorMarkupPreviewController', | |||||
'question/(?P<status>open|close)/(?P<id>[1-9]\d*)/' | 'question/(?P<status>open|close)/(?P<id>[1-9]\d*)/' | ||||
=> 'PonderQuestionStatusController', | => 'PonderQuestionStatusController', | ||||
'vote/' => 'PonderVoteSaveController', | 'vote/' => 'PonderVoteSaveController', | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function getMailCommandObjects() { | public function getMailCommandObjects() { | ||||
Show All 19 Lines |