Page MenuHomestyx hydra

PhabricatorRobotsController.php
No OneTemporary

PhabricatorRobotsController.php

<?php
abstract class PhabricatorRobotsController extends PhabricatorController {
public function shouldRequireLogin() {
return false;
}
final public function processRequest() {
$out = $this->newRobotsRules();
$content = implode("\n", $out)."\n";
return id(new AphrontPlainTextResponse())
->setContent($content)
->setCacheDurationInSeconds(phutil_units('2 hours in seconds'))
->setCanCDN(true);
}
abstract protected function newRobotsRules();
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Dec 1, 1:49 AM (23 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
430139
Default Alt Text
PhabricatorRobotsController.php (495 B)

Event Timeline