Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/controller/AlmanacServiceViewController.php
Show All 9 Lines | final class AlmanacServiceViewController | ||||
public function handleRequest(AphrontRequest $request) { | public function handleRequest(AphrontRequest $request) { | ||||
$viewer = $request->getViewer(); | $viewer = $request->getViewer(); | ||||
$name = $request->getURIData('name'); | $name = $request->getURIData('name'); | ||||
$service = id(new AlmanacServiceQuery()) | $service = id(new AlmanacServiceQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withNames(array($name)) | ->withNames(array($name)) | ||||
->needProperties(true) | |||||
->executeOne(); | ->executeOne(); | ||||
if (!$service) { | if (!$service) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$title = pht('Service %s', $service->getName()); | $title = pht('Service %s', $service->getName()); | ||||
$property_list = $this->buildPropertyList($service); | $property_list = $this->buildPropertyList($service); | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |