/** * Converts a path to an absolute one if necessary. * * @param string $path * @param boolean $useIncludePath * @return string */ protected function toAbsolutePath($path, $useIncludePath = false) { return Cli::toAbsolutePath($path, dirname($this->filename), $useIncludePath); }
/** * Return an absolute path relative to the used file. * * @param string $path * @param string $default * @return string */ protected function toAbsolutePath($path, $default = null) { return !empty($path) ? Util\Cli::toAbsolutePath($path, Util\Cli::getBase('configuration')) : $default; }