private function loadServiceDescription(array $service, array $description)
    {
        foreach ($service as $section => $set) {
            if ($section == 'operations') {
                // add global parameters to the operation parameters
                foreach ($set as &$op)
                    $op['parameters'] = isset($op['parameters'])
                                    ? $op['parameters'] + $this->globalParams
                                    : $this->globalParams;
            }
            $description[$section] = $description[$section] + $set;
        }
        return $description;
    }
private function loadServiceDescription(array $service, array $description)
    {
        foreach ($service as $section => $set) {
            if ($section == 'operations') {
                // add global parameters to the operation parameters
                foreach ($set as &$op)
                    $op['parameters'] = isset($op['parameters'])
                                    ? $op['parameters'] + $this->globalParams
                                    : $this->globalParams;
            }
            $description[$section] = $description[$section] + $set;
        }
        return $description;
    }
private function loadServiceDescription ( array $ service , array $ description ) { foreach ( $ service as $ section => $ set ) { if ( $ section == 'operations' ) { // add global parameters to the operation parameters foreach ( $ set as & $ op ) $ op [ 'parameters' ] = isset ( $ op [ 'parameters' ] ) ? $ op [ 'parameters' ] + $ this -> globalParams : $ this -> globalParams ; } $ description [ $ section ] = $ description [ $ section ] + $ set ; } return $ description ; }
Load service description from resource, add global
parameters to operations. Operations and models
added to full description.

@param  array $service
@param  array $description
@return array
Load service description from resource add global parameters to operations . Operations and models added to full description .