Page MenuHomePhorge

PhorgeItPublicHomeSite.php
No OneTemporary

PhorgeItPublicHomeSite.php

<?php
final class PhorgeItPublicHomeSite extends PhabricatorSite {
public function getDescription() {
return pht('Landing page for phorge.it');
}
public function getPriority() {
return 3000;
}
public function newSiteForRequest(AphrontRequest $request) {
return;
$host = $request->getHost();
if ($host == 'localhost') { // TODO config
return new self();
}
}
public function getRoutingMaps() {
$app = PhabricatorApplication::getByClass('PhorgeItHomeApplication');
$maps = array();
$maps[] = $this->newRoutingMap()
->setApplication($app)
->setRoutes(array('/' => 'PhorgeItHomeController'));
return $maps;
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Dec 19, 17:03 (22 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1014887
Default Alt Text
PhorgeItPublicHomeSite.php (691 B)

Event Timeline