CompilerPass/MappingCompilerPass.php
private function resolveParameterName(
        ContainerBuilder $container,
        $parameterName
    ) {
        if (!is_string($parameterName)) {
            return $parameterName;
        }

        return $container->hasParameter($parameterName)
            ? $container->getParameter($parameterName)
            : $parameterName;
    }
private function resolveParameterName(
        ContainerBuilder $container,
        $parameterName
    ) {
        if (!is_string($parameterName)) {
            return $parameterName;
        }

        return $container->hasParameter($parameterName)
            ? $container->getParameter($parameterName)
            : $parameterName;
    }
private function resolveParameterName ( ContainerBuilder $ container , $ parameterName ) { if ( ! is_string ( $ parameterName ) ) { return $ parameterName ; } return $ container -> hasParameter ( $ parameterName ) ? $ container -> getParameter ( $ parameterName ) : $ parameterName ; }
Return value of parameter name if exists
Return itself otherwise.

@param ContainerBuilder $container
@param mixed            $parameterName

@return mixed
Return value of parameter name if exists Return itself otherwise .