library/Phalex/Config/Config.php
protected function filterViewPath($configViewPaths)
    {
        if (!ArrayUtils::isHashTable($configViewPaths)) {
            throw new Exception\InvalidArgumentException('Config view path is not valid');
        }

        foreach ($configViewPaths as $moduleName => $viewPath) {
            $viewPath = realpath($viewPath);
            if (!$viewPath) {
                $errMsg = sprintf('Config view path for "%s" module is invalid', $moduleName);
                throw new Exception\RuntimeException($errMsg);
            }
            $configViewPaths[$moduleName] = $viewPath;
        }
        return $configViewPaths;
    }
protected function filterViewPath($configViewPaths)
    {
        if (!ArrayUtils::isHashTable($configViewPaths)) {
            throw new Exception\InvalidArgumentException('Config view path is not valid');
        }

        foreach ($configViewPaths as $moduleName => $viewPath) {
            $viewPath = realpath($viewPath);
            if (!$viewPath) {
                $errMsg = sprintf('Config view path for "%s" module is invalid', $moduleName);
                throw new Exception\RuntimeException($errMsg);
            }
            $configViewPaths[$moduleName] = $viewPath;
        }
        return $configViewPaths;
    }
protected function filterViewPath ( $ configViewPaths ) { if ( ! ArrayUtils :: isHashTable ( $ configViewPaths ) ) { throw new Exception \ InvalidArgumentException ( 'Config view path is not valid' ) ; } foreach ( $ configViewPaths as $ moduleName => $ viewPath ) { $ viewPath = realpath ( $ viewPath ) ; if ( ! $ viewPath ) { $ errMsg = sprintf ( 'Config view path for "%s" module is invalid' , $ moduleName ) ; throw new Exception \ RuntimeException ( $ errMsg ) ; } $ configViewPaths [ $ moduleName ] = $ viewPath ; } return $ configViewPaths ; }
Get real path for view path configs
@param array $configViewPaths
@return array
@throws Exception\InvalidArgumentException
@throws Exception\RuntimeException
Get real path for view path configs