public function getPath($path, $replace = null, $with = '') { if (!isset($this->paths[$path])) { return $path; } $path = $this->paths[$path]; if ($replace !== null) { $path = str_replace($replace, $with, $path); } return $path; }