public function set($key, $value)
    {
        if (is_string($key)) {
            $this->config[$key] = $value;
        } else {
            throw new ConfigException('config key must be a string');
        }
    }