@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 Phabricator's static resources.
5 */
6final class CelerityPhabricatorResources extends CelerityResourcesOnDisk {
7
8 public function getName() {
9 return 'phabricator';
10 }
11
12 public function getPathToResources() {
13 return $this->getPhabricatorPath('webroot/');
14 }
15
16 public function getPathToMap() {
17 return $this->getPhabricatorPath('resources/celerity/map.php');
18 }
19
20 private function getPhabricatorPath($to_file) {
21 return dirname(phutil_get_library_root('phabricator')).'/'.$to_file;
22 }
23
24 public function getResourcePackages() {
25 return include $this->getPhabricatorPath('resources/celerity/packages.php');
26 }
27
28}