protected function addConfig(array $content, $resource)
    {
        foreach ($content as $key => $value) {
            $parameterBag = self::$parameters[$resource];

            $value = $parameterBag->unescapeValue($parameterBag->resolveValue($value));

            if (is_array($value) && !is_numeric($key)) {
                $key = array($key => $value);
                $value = true;
            }

            self::$slim->config($key, $value);
        }
    }