Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontApplicationConfiguration.php
| <?php | <?php | ||||
| /** | /** | ||||
| * @task routing URI Routing | * @task routing URI Routing | ||||
| * @group aphront | |||||
| */ | */ | ||||
| abstract class AphrontApplicationConfiguration { | abstract class AphrontApplicationConfiguration { | ||||
| private $request; | private $request; | ||||
| private $host; | private $host; | ||||
| private $path; | private $path; | ||||
| private $console; | private $console; | ||||
| ▲ Show 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | final public function buildControllerForPath($path) { | ||||
| $controller = newv($controller_class, array($request)); | $controller = newv($controller_class, array($request)); | ||||
| if ($current_application) { | if ($current_application) { | ||||
| $controller->setCurrentApplication($current_application); | $controller->setCurrentApplication($current_application); | ||||
| } | } | ||||
| return array($controller, $uri_data); | return array($controller, $uri_data); | ||||
| } | } | ||||
| } | } | ||||