DependencyInjection/ONGRConnectionsExtension.php
protected function prepareTypeServiceConfigs($serviceConfig, $typeConfig, $type)
    {
        return array_merge(
            $serviceConfig,
            $typeConfig['config'],
            [
                'entity_class' => $typeConfig['entity_class'],
                'document_class' => $typeConfig['document_class'],
                'document_type' => $type,
            ]
        );
    }
protected function prepareTypeServiceConfigs($serviceConfig, $typeConfig, $type)
    {
        return array_merge(
            $serviceConfig,
            $typeConfig['config'],
            [
                'entity_class' => $typeConfig['entity_class'],
                'document_class' => $typeConfig['document_class'],
                'document_type' => $type,
            ]
        );
    }
Merges global configs with type config.

@param array  $serviceConfig
@param array  $typeConfig
@param string $type

@return array