public function __construct($homedir, array $config = [], $localHome = null, array $localConfig = [])
{
$this->config[self::CONFIG_SYSTEM] = array_merge(static::$defaultConfig, $config);
$this->config[self::CONFIG_ALL] = $this->config[self::CONFIG_SYSTEM];
$this->config[self::CONFIG_ALL]['home'] = $homedir;
$this->config[self::CONFIG_ALL]['home_config'] = $homedir . '/.gush.yml';
if (null !== $localHome) {
$this->config[self::CONFIG_ALL]['local'] = $localHome;
$this->config[self::CONFIG_ALL]['local_config'] = $localHome . '/.gush.yml';
$this->config[self::CONFIG_ALL] = array_merge($this->config[self::CONFIG_ALL], $localConfig);
$this->config[self::CONFIG_LOCAL] = $localConfig;
}
}