@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 18 lines 406 B view raw
1<?php 2 3/** 4 * Indirection layer which provisions for a terrifying future where we need to 5 * build multiple resource responses per page. 6 */ 7final class CelerityAPI extends Phobject { 8 9 private static $response; 10 11 public static function getStaticResourceResponse() { 12 if (empty(self::$response)) { 13 self::$response = new CelerityStaticResourceResponse(); 14 } 15 return self::$response; 16 } 17 18}