@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 24 lines 445 B view raw
1<?php 2 3final class AphrontPlainTextResponse extends AphrontResponse { 4 5 private $content; 6 7 public function setContent($content) { 8 $this->content = $content; 9 return $this; 10 } 11 12 public function buildResponseString() { 13 return $this->content; 14 } 15 16 public function getHeaders() { 17 $headers = array( 18 array('Content-Type', 'text/plain; charset=utf-8'), 19 ); 20 21 return array_merge(parent::getHeaders(), $headers); 22 } 23 24}