protected function setMappingDriverConfig(array $mappingConfig, $mappingName)
    {
        $mappingDirectory = $mappingConfig['dir'];
        if (!is_dir($mappingDirectory)) {
            throw new \InvalidArgumentException(sprintf('Invalid Doctrine mapping path given. Cannot load Doctrine mapping/bundle named "%s".', $mappingName));
        }

        $this->drivers[$mappingConfig['type']][$mappingConfig['prefix']] = realpath($mappingDirectory) ?: $mappingDirectory;
    }
protected function setMappingDriverConfig(array $mappingConfig, $mappingName)
    {
        $mappingDirectory = $mappingConfig['dir'];
        if (!is_dir($mappingDirectory)) {
            throw new \InvalidArgumentException(sprintf('Invalid Doctrine mapping path given. Cannot load Doctrine mapping/bundle named "%s".', $mappingName));
        }

        $this->drivers[$mappingConfig['type']][$mappingConfig['prefix']] = realpath($mappingDirectory) ?: $mappingDirectory;
    }
protected function setMappingDriverConfig ( array $ mappingConfig , $ mappingName ) { $ mappingDirectory = $ mappingConfig [ 'dir' ] ; if ( ! is_dir ( $ mappingDirectory ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid Doctrine mapping path given. Cannot load Doctrine mapping/bundle named "%s".' , $ mappingName ) ) ; } $ this -> drivers [ $ mappingConfig [ 'type' ] ] [ $ mappingConfig [ 'prefix' ] ] = realpath ( $ mappingDirectory ) ? : $ mappingDirectory ; }
Register the mapping driver configuration for later use with the object managers metadata driver chain.

@param array  $mappingConfig
@param string $mappingName

@throws \InvalidArgumentException
Register the mapping driver configuration for later use with the object managers metadata driver chain .