Changeset View
Changeset View
Standalone View
Standalone View
src/init/lib/PhutilBootloader.php
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | public function getLibraryMapWithoutExtensions($name) { | ||||
// This just does all the checks to make sure the library is valid, then | // This just does all the checks to make sure the library is valid, then | ||||
// we throw away the result. | // we throw away the result. | ||||
$this->getLibraryMap($name); | $this->getLibraryMap($name); | ||||
return $this->libraryMaps[$name]; | return $this->libraryMaps[$name]; | ||||
} | } | ||||
public function getLibraryRoot($name) { | public function getLibraryRoot($name) { | ||||
if ($name === 'phabricator') { | |||||
// TODO warning | |||||
$name = 'phorge'; | |||||
} | |||||
speck: It looks like there are ~61 instances of `phutil_get_library_root('phabricator')` in the phorge… | |||||
Done Inline ActionsProbably, at some point. avivey: Probably, at some point.
There's also the word `phabricator` in the Celerity/Javeline parts… | |||||
if (empty($this->registeredLibraries[$name])) { | if (empty($this->registeredLibraries[$name])) { | ||||
throw new PhutilBootloaderException( | throw new PhutilBootloaderException( | ||||
"The phutil library '{$name}' has not been loaded!"); | "The phutil library '{$name}' has not been loaded!"); | ||||
} | } | ||||
return $this->registeredLibraries[$name]; | return $this->registeredLibraries[$name]; | ||||
} | } | ||||
public function getAllLibraries() { | public function getAllLibraries() { | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
It looks like there are ~61 instances of phutil_get_library_root('phabricator') in the phorge repo. Is the plan to eventually replace those?