Differential D7872 Diff 17810 src/infrastructure/celerity/resources/CelerityPhabricatorResources.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/celerity/resources/CelerityPhabricatorResources.php
| Show All 15 Lines | final class CelerityPhabricatorResources extends CelerityResourcesOnDisk { | ||||
| public function getPathToMap() { | public function getPathToMap() { | ||||
| return $this->getPhabricatorPath('resources/celerity/map.php'); | return $this->getPhabricatorPath('resources/celerity/map.php'); | ||||
| } | } | ||||
| private function getPhabricatorPath($to_file) { | private function getPhabricatorPath($to_file) { | ||||
| return dirname(phutil_get_library_root('phabricator')).'/'.$to_file; | return dirname(phutil_get_library_root('phabricator')).'/'.$to_file; | ||||
| } | } | ||||
| public function getResourcePackages() { | |||||
| return include $this->getPhabricatorPath('resources/celerity/packages.php'); | |||||
| } | |||||
| } | } | ||||