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);
        }
    }
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);
        }
    }
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 ) ; } }
Resolves parameters and adds to Slim's config singleton.

@param array  $content
@param string $resource

@return void
Resolves parameters and adds to Slim s config singleton .