protected function getOptionalParams($type, array $optionalParams)
    {
        foreach ($optionalParams as $optionalParamName) {
            $val = $this->getConfigValue($type, $optionalParamName);

            if ($val) {
                $this->serviceParams[$optionalParamName] = $val;
            }

            $this->optionalParamNames = $optionalParamName;
        }
    }
protected function getOptionalParams($type, array $optionalParams)
    {
        foreach ($optionalParams as $optionalParamName) {
            $val = $this->getConfigValue($type, $optionalParamName);

            if ($val) {
                $this->serviceParams[$optionalParamName] = $val;
            }

            $this->optionalParamNames = $optionalParamName;
        }
    }
protected function getOptionalParams ( $ type , array $ optionalParams ) { foreach ( $ optionalParams as $ optionalParamName ) { $ val = $ this -> getConfigValue ( $ type , $ optionalParamName ) ; if ( $ val ) { $ this -> serviceParams [ $ optionalParamName ] = $ val ; } $ this -> optionalParamNames = $ optionalParamName ; } }
get optional param values from Config and add them to the service params

@param $type
@param array $optionalParams
get optional param values from Config and add them to the service params