src/ConfigLoader.php
public function clear(Config $means, Config $target)
    {
        foreach ($target as $key => $value) {
            if ($value instanceof BaseConfig && isset($means[$key])) {
                $this->clear($means[$key], $value);
            } else {
                if (isset($means[$key])) {
                    $target->offsetUnset($key);
                }
            }
        }

        return new BaseConfig($target->toArray());
    }
public function clear(Config $means, Config $target)
    {
        foreach ($target as $key => $value) {
            if ($value instanceof BaseConfig && isset($means[$key])) {
                $this->clear($means[$key], $value);
            } else {
                if (isset($means[$key])) {
                    $target->offsetUnset($key);
                }
            }
        }

        return new BaseConfig($target->toArray());
    }
public function clear ( Config $ means , Config $ target ) { foreach ( $ target as $ key => $ value ) { if ( $ value instanceof BaseConfig && isset ( $ means [ $ key ] ) ) { $ this -> clear ( $ means [ $ key ] , $ value ) ; } else { if ( isset ( $ means [ $ key ] ) ) { $ target -> offsetUnset ( $ key ) ; } } } return new BaseConfig ( $ target -> toArray ( ) ) ; }
Delete variables that are already defined in the main configuration file

@param Config $means Main configuration file
@param Config $target Imported configuration file
@return Config
Delete variables that are already defined in the main configuration file