original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Register the mapping driver configuration for later use with the object managers metadata driver chain.
  
  @param array  $mappingConfig
  @param string $mappingName
  
  @throws \InvalidArgumentException
docstring_tokens: Register the mapping driver configuration for later use with the object managers metadata driver chain .