Page MenuHomePhorge

CelerityStuffFromExtensions
ActivePublic

Authored by avivey on Mon, Feb 12, 19:45.
<?php
final class CelerityStuffFromExtensions extends CelerityResourcesOnDisk {
private $map;
public function getName() {
return 'src-extensions';
}
public function getPathToResources() {
return __DIR__.'/rsrc';
}
public function getPathToMap() {
// throw new Exception("Generated at runtime");
return '/dev/null';
}
public function loadMap() {
if ($this->map === null) {
$generator = new CelerityResourceMapGenerator($this);
$data = $generator->generate();
$this->map = array(
'names' => $data->getNameMap(),
'symbols' => $data->getSymbolMap(),
'requires' => $data->getRequiresMap(),
'packages' => $data->getPackageMap(),
);
}
return $this->map;
}
}