protected function setDotNotationKey($key, $value)
    {
        $splitKey = explode('.', $key);
        $root     = &$this->data;
        // Look for the key, creating nested keys if needed
        while ($part = array_shift($splitKey)) {
            if (!isset($root[$part]) && count($splitKey)) {
                $root[$part] = [];
            }
            $root = &$root[$part];
        }

        $root = $value;
    }
protected function setDotNotationKey($key, $value)
    {
        $splitKey = explode('.', $key);
        $root     = &$this->data;
        // Look for the key, creating nested keys if needed
        while ($part = array_shift($splitKey)) {
            if (!isset($root[$part]) && count($splitKey)) {
                $root[$part] = [];
            }
            $root = &$root[$part];
        }

        $root = $value;
    }
protected function setDotNotationKey ( $ key , $ value ) { $ splitKey = explode ( '.' , $ key ) ; $ root = & $ this -> data ; // Look for the key, creating nested keys if needed while ( $ part = array_shift ( $ splitKey ) ) { if ( ! isset ( $ root [ $ part ] ) && count ( $ splitKey ) ) { $ root [ $ part ] = [ ] ; } $ root = & $ root [ $ part ] ; } $ root = $ value ; }
Handle setting a configuration value with a dot notation key.

@param string $key   Dot notation key.
@param mixed  $value Configuration value.
Handle setting a configuration value with a dot notation key .