private function createExpression(array $dynamicSetting)
    {
        $expression = sprintf(
            'service("ezpublish.config.resolver").getParameter("%s", %s, %s)',
            $dynamicSetting['param'],
            isset($dynamicSetting['namespace']) ? '"' . $dynamicSetting['namespace'] . '"' : 'null',
            isset($dynamicSetting['scope']) ? '"' . $dynamicSetting['scope'] . '"' : 'null'
        );

        return new Expression($expression);
    }
private function createExpression(array $dynamicSetting)
    {
        $expression = sprintf(
            'service("ezpublish.config.resolver").getParameter("%s", %s, %s)',
            $dynamicSetting['param'],
            isset($dynamicSetting['namespace']) ? '"' . $dynamicSetting['namespace'] . '"' : 'null',
            isset($dynamicSetting['scope']) ? '"' . $dynamicSetting['scope'] . '"' : 'null'
        );

        return new Expression($expression);
    }
private function createExpression ( array $ dynamicSetting ) { $ expression = sprintf ( 'service("ezpublish.config.resolver").getParameter("%s", %s, %s)' , $ dynamicSetting [ 'param' ] , isset ( $ dynamicSetting [ 'namespace' ] ) ? '"' . $ dynamicSetting [ 'namespace' ] . '"' : 'null' , isset ( $ dynamicSetting [ 'scope' ] ) ? '"' . $ dynamicSetting [ 'scope' ] . '"' : 'null' ) ; return new Expression ( $ expression ) ; }
Returns the expression object corresponding to passed dynamic setting.

@param array $dynamicSetting Parsed dynamic setting, as returned by DynamicSettingParser.

@return Expression
Returns the expression object corresponding to passed dynamic setting .