Ouzo\Config\ConfigRepository::_getConfigEnv PHP Method

_getConfigEnv() private method

private _getConfigEnv ( )
    private function _getConfigEnv()
    {
        $configPath = Path::join(ROOT_PATH, 'config', getenv('environment'), 'config.php');
        if (file_exists($configPath)) {
            /** @noinspection PhpIncludeInspection */
            return require $configPath;
        }
        return array();
    }