Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/celerity/resources/CelerityPhabricatorResources.php
12256 views
1
<?php
2
3
/**
4
* Defines Phabricator's static resources.
5
*/
6
final 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
}
29
30