Phrozn\Config::updatePaths PHP Method

updatePaths() public method

Make sure that absolute application path is prepended to config paths
public updatePaths ( ) : Config
return Config
    public function updatePaths()
    {
        if (isset($this->configs['paths'])) {
            $paths = Loader::getInstance()->getPaths();
            foreach ($this->configs['paths'] as $key => $file) {
                $file = str_replace('@PEAR-DIR@', $paths['php_dir'], $file);
                $file = str_replace('@DATA-DIR@', $paths['data_dir'], $file);
                $this->configs['paths'][$key] = $file;
            }
        }
        return $this;
    }