Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/site/PhabricatorPlatformSite.php
| Show All 31 Lines | public function newSiteForRequest(AphrontRequest $request) { | ||||
| $host = $request->getHost(); | $host = $request->getHost(); | ||||
| if ($this->isHostMatch($host, $uris)) { | if ($this->isHostMatch($host, $uris)) { | ||||
| return new PhabricatorPlatformSite(); | return new PhabricatorPlatformSite(); | ||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||
| public function getRoutingMaps() { | |||||
| $applications = PhabricatorApplication::getAllInstalledApplications(); | |||||
| $maps = array(); | |||||
| foreach ($applications as $application) { | |||||
| $maps[] = $this->newRoutingMap() | |||||
| ->setApplication($application) | |||||
| ->setRoutes($application->getRoutes()); | |||||
| } | |||||
| return $maps; | |||||
| } | |||||
| } | } | ||||