library/Phalex/Config/Cache/FileTrait.php
public function getConfig($file = null)
    {
        $file = !empty($file) ? $file : $this->fileCache;
        if (file_exists($file)) {
            if (!is_readable($file)) {
                throw new Exception\RuntimeException(sprintf('"%s" cannot read', $file));
            }
            return require $file;
        }
        return false;
    }
public function getConfig($file = null)
    {
        $file = !empty($file) ? $file : $this->fileCache;
        if (file_exists($file)) {
            if (!is_readable($file)) {
                throw new Exception\RuntimeException(sprintf('"%s" cannot read', $file));
            }
            return require $file;
        }
        return false;
    }
public function getConfig ( $ file = null ) { $ file = ! empty ( $ file ) ? $ file : $ this -> fileCache ; if ( file_exists ( $ file ) ) { if ( ! is_readable ( $ file ) ) { throw new Exception \ RuntimeException ( sprintf ( '"%s" cannot read' , $ file ) ) ; } return require $ file ; } return false ; }
Get config from file cache
@param string $file
@return array|false Return array config when file existed and readable, otherwise return false
@throws Exception\RuntimeException
Get config from file cache