public static function createConfig($home = null, $localHome = null)
    {
        if (null === $home) {
            $home = static::getHomedir();
        }

        $localConfig = [];

        $systemConfig = self::loadFileOrEmpty($home.'/.gush.yml');

        if (null !== $localHome) {
            $localConfig = self::loadFileOrEmpty($localHome.'/.gush.yml');
        }

        return new Config($home, $systemConfig, $localHome, $localConfig);
    }
public static function createConfig($home = null, $localHome = null)
    {
        if (null === $home) {
            $home = static::getHomedir();
        }

        $localConfig = [];

        $systemConfig = self::loadFileOrEmpty($home.'/.gush.yml');

        if (null !== $localHome) {
            $localConfig = self::loadFileOrEmpty($localHome.'/.gush.yml');
        }

        return new Config($home, $systemConfig, $localHome, $localConfig);
    }
public static function createConfig ( $ home = null , $ localHome = null ) { if ( null === $ home ) { $ home = static :: getHomedir ( ) ; } $ localConfig = [ ] ; $ systemConfig = self :: loadFileOrEmpty ( $ home . '/.gush.yml' ) ; if ( null !== $ localHome ) { $ localConfig = self :: loadFileOrEmpty ( $ localHome . '/.gush.yml' ) ; } return new Config ( $ home , $ systemConfig , $ localHome , $ localConfig ) ; }
Create a new Config object using the local filesystem.

Note that any missing config file is ignored.

When the home directory doesn't exist it's created.

@param string|null $localHome Local home directory to load extra configuration from
when null this is ignored

@return Config
Create a new Config object using the local filesystem .