Kraken\Config\Config::overwrite PHP Method

overwrite() protected method

Overwrites current config using known method.
protected overwrite ( array $current, array $new, callable | null $handler = null ) : array
$current array
$new array
$handler callable | null
return array
    protected function overwrite($current, $new, $handler = null)
    {
        if ($handler === null) {
            $handler = $this->overwriteHandler;
        }
        return call_user_func_array($handler, [$current, $new]);
    }