Something went wrong. Try again.
@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
Something went wrong. Try again.
PHP
12345678910111213141516171819202122232425<?php
/** * An object can implement this interface to allow it to be returned directly * from an @{class:AphrontController}. * * Normally, controllers must return an @{class:AphrontResponse}. Sometimes, * this is not convenient or requires an awkward API. If it's preferable to * return some other type of object which is equivalent to or describes a * valid response, that object can implement this interface and produce a * response later. */interface AphrontResponseProducerInterface {
/** * Produce the equivalent @{class:AphrontResponse} for this object. * * @return AphrontResponse Equivalent response. */ public function produceAphrontResponse();
}