Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/AphrontController.php
| Show All 18 Lines | abstract class AphrontController extends Phobject { | ||||
| public function willBeginExecution() { | public function willBeginExecution() { | ||||
| return; | return; | ||||
| } | } | ||||
| public function willProcessRequest(array $uri_data) { | public function willProcessRequest(array $uri_data) { | ||||
| return; | return; | ||||
| } | } | ||||
| public function didProcessRequest($response) { | |||||
| return $response; | |||||
| } | |||||
| public function handleRequest(AphrontRequest $request) { | public function handleRequest(AphrontRequest $request) { | ||||
| if (method_exists($this, 'processRequest')) { | if (method_exists($this, 'processRequest')) { | ||||
| return $this->processRequest(); | return $this->processRequest(); | ||||
| } | } | ||||
| throw new PhutilMethodNotImplementedException( | throw new PhutilMethodNotImplementedException( | ||||
| pht( | pht( | ||||
| 'Controllers must implement either %s (recommended) '. | 'Controllers must implement either %s (recommended) '. | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||