getHost(); if ($this->isHostMatch($host, $uris)) { return new PhabricatorPlatformSite(); } return null; } public function getRoutingMaps() { $applications = PhabricatorApplication::getAllInstalledApplications(); $maps = array(); foreach ($applications as $application) { $maps[] = $this->newRoutingMap() ->setApplication($application) ->setRoutes($application->getRoutes()); } return $maps; } public function new404Controller(AphrontRequest $request) { return new PhabricatorPlatform404Controller(); } }