public function getInfo($name)
    {
        $keys = explode('.', $name);
        if (is_array($keys)) {
            $file = array_shift($keys);
            $key = implode('.', $keys);
        } else {
            $file = $name;
            $key = null;
        }

        return ['file' => $file, 'key' => $key];
    }
public function getInfo($name)
    {
        $keys = explode('.', $name);
        if (is_array($keys)) {
            $file = array_shift($keys);
            $key = implode('.', $keys);
        } else {
            $file = $name;
            $key = null;
        }

        return ['file' => $file, 'key' => $key];
    }
public function getInfo ( $ name ) { $ keys = explode ( '.' , $ name ) ; if ( is_array ( $ keys ) ) { $ file = array_shift ( $ keys ) ; $ key = implode ( '.' , $ keys ) ; } else { $ file = $ name ; $ key = null ; } return [ 'file' => $ file , 'key' => $ key ] ; }
Get the filename and key of the config name
@param $name
@return array
Get the filename and key of the config name