@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
1<?php
2
3/**
4 * Defines the location of static resources.
5 */
6abstract class CelerityResources extends Phobject {
7
8 abstract public function getName();
9 abstract public function getResourceData($name);
10
11 public function getResourceModifiedTime($name) {
12 return 0;
13 }
14
15 public function getResourceType($path) {
16 return CelerityResourceTransformer::getResourceType($path);
17 }
18
19 public function getResourceURI($hash, $name) {
20 $resources = $this->getName();
21 return "/res/{$resources}/{$hash}/{$name}";
22 }
23
24 public function getResourcePackages() {
25 return array();
26 }
27
28 public function loadMap() {
29 return array();
30 }
31
32}