public function read(string $name, $default = null)
    {
        $path = explode('.', $name);
        $key = $path[0];

        if (!isset($this->cache[$key])) {
            $file = $this->configFile($key);

            if (!file_exists($file)) {
                return $default;
            }

            $this->cache[$key] = new ConfigHelper($this->readConfig($file));

        }

        return $this->cache[$key]->get($path, $default);
    }
public function read(string $name, $default = null)
    {
        $path = explode('.', $name);
        $key = $path[0];

        if (!isset($this->cache[$key])) {
            $file = $this->configFile($key);

            if (!file_exists($file)) {
                return $default;
            }

            $this->cache[$key] = new ConfigHelper($this->readConfig($file));

        }

        return $this->cache[$key]->get($path, $default);
    }
{@inheritdoc}