library/Phalex/Config/Config.php
public function getConfig()
    {
        if ($this->cache instanceof Cache\CacheInterface && !empty($configs = $this->cache->getConfig())) {
            return $configs;
        }

        $configs = $this->moduleHandler->getModulesConfig();
        foreach ($this->files as $file) {
            $config = require $file;
            if (!is_array($config)) {
                throw new Exception\RuntimeException(sprintf('The config in "%s" file must be array data type', $file));
            }
            $configs = ArrayUtils::merge($configs, require $file);
        }

        return $this->cleanUp($configs);
    }
public function getConfig()
    {
        if ($this->cache instanceof Cache\CacheInterface && !empty($configs = $this->cache->getConfig())) {
            return $configs;
        }

        $configs = $this->moduleHandler->getModulesConfig();
        foreach ($this->files as $file) {
            $config = require $file;
            if (!is_array($config)) {
                throw new Exception\RuntimeException(sprintf('The config in "%s" file must be array data type', $file));
            }
            $configs = ArrayUtils::merge($configs, require $file);
        }

        return $this->cleanUp($configs);
    }
public function getConfig ( ) { if ( $ this -> cache instanceof Cache \ CacheInterface && ! empty ( $ configs = $ this -> cache -> getConfig ( ) ) ) { return $ configs ; } $ configs = $ this -> moduleHandler -> getModulesConfig ( ) ; foreach ( $ this -> files as $ file ) { $ config = require $ file ; if ( ! is_array ( $ config ) ) { throw new Exception \ RuntimeException ( sprintf ( 'The config in "%s" file must be array data type' , $ file ) ) ; } $ configs = ArrayUtils :: merge ( $ configs , require $ file ) ; } return $ this -> cleanUp ( $ configs ) ; }
Get entire configurations in application and modules

@return array
Get entire configurations in application and modules