src/Config/Config.php
public function load($data, $key = null) {
        if ($key) {
            if (isset($this->data[$key])) {
                $this->data[$key] = self::array_merge_recursive_unique($this->data[$key], $data);
            } else {
                $this->data[$key] = $data;
            }
        } else {
            if (is_array($data)) {
                $this->data = self::array_merge_recursive_unique($this->data, $data);
            }
        }
    }
public function load($data, $key = null) {
        if ($key) {
            if (isset($this->data[$key])) {
                $this->data[$key] = self::array_merge_recursive_unique($this->data[$key], $data);
            } else {
                $this->data[$key] = $data;
            }
        } else {
            if (is_array($data)) {
                $this->data = self::array_merge_recursive_unique($this->data, $data);
            }
        }
    }
public function load ( $ data , $ key = null ) { if ( $ key ) { if ( isset ( $ this -> data [ $ key ] ) ) { $ this -> data [ $ key ] = self :: array_merge_recursive_unique ( $ this -> data [ $ key ] , $ data ) ; } else { $ this -> data [ $ key ] = $ data ; } } else { if ( is_array ( $ data ) ) { $ this -> data = self :: array_merge_recursive_unique ( $ this -> data , $ data ) ; } } }
Load from array
Load from array