protected function expandPath($path)
{
if (strpos($path, 'www:') === 0) {
$path = str_replace('www:', App::wwwPath(), $path);
} elseif (strpos($path, 'jelixwww:') === 0) {
$p = $this->config->getValue('jelixWWWPath', 'urlengine');
if (substr($p, -1) != '/') {
$p .= '/';
}
$path = str_replace('jelixwww:', App::wwwPath($p), $path);
} elseif (strpos($path, 'config:') === 0) {
$path = str_replace('config:', App::configPath(), $path);
} elseif (strpos($path, 'appconfig:') === 0) {
$path = str_replace('appconfig:', App::appConfigPath(), $path);
} elseif (strpos($path, 'epconfig:') === 0) {
$p = dirname(App::appConfigPath($this->entryPoint->getConfigFile()));
$path = str_replace('epconfig:', $p . '/', $path);
}
return $path;
}