protected function createMetadataConfiguration(
        $type,
        $paths,
        $isDevMode,
        $proxyDir,
        $cache,
        $useSimpleAnnotationReader = true
    ) {
        switch ($type) {
            case self::METADATA_ANNOTATIONS:
                return Setup::createAnnotationMetadataConfiguration($paths, $isDevMode, $proxyDir, $cache,
                    $useSimpleAnnotationReader);
            case self::METADATA_XML:
                return Setup::createXMLMetadataConfiguration($paths, $isDevMode, $proxyDir, $cache);
            case self::METADATA_YAML:
                return Setup::createYAMLMetadataConfiguration($paths, $isDevMode, $proxyDir, $cache);
            default:
                throw new Exception("Metadata type '$type' is not supported.");
        }
    }
protected function createMetadataConfiguration(
        $type,
        $paths,
        $isDevMode,
        $proxyDir,
        $cache,
        $useSimpleAnnotationReader = true
    ) {
        switch ($type) {
            case self::METADATA_ANNOTATIONS:
                return Setup::createAnnotationMetadataConfiguration($paths, $isDevMode, $proxyDir, $cache,
                    $useSimpleAnnotationReader);
            case self::METADATA_XML:
                return Setup::createXMLMetadataConfiguration($paths, $isDevMode, $proxyDir, $cache);
            case self::METADATA_YAML:
                return Setup::createYAMLMetadataConfiguration($paths, $isDevMode, $proxyDir, $cache);
            default:
                throw new Exception("Metadata type '$type' is not supported.");
        }
    }
protected function createMetadataConfiguration ( $ type , $ paths , $ isDevMode , $ proxyDir , $ cache , $ useSimpleAnnotationReader = true ) { switch ( $ type ) { case self :: METADATA_ANNOTATIONS : return Setup :: createAnnotationMetadataConfiguration ( $ paths , $ isDevMode , $ proxyDir , $ cache , $ useSimpleAnnotationReader ) ; case self :: METADATA_XML : return Setup :: createXMLMetadataConfiguration ( $ paths , $ isDevMode , $ proxyDir , $ cache ) ; case self :: METADATA_YAML : return Setup :: createYAMLMetadataConfiguration ( $ paths , $ isDevMode , $ proxyDir , $ cache ) ; default : throw new Exception ( "Metadata type '$type' is not supported." ) ; } }
Creates the metadata configuration instance.

@param string $type
@param array  $paths
@param bool   $isDevMode
@param string $proxyDir
@param Cache  $cache
@param bool   $useSimpleAnnotationReader

@return Configuration
@throws \Exception
Creates the metadata configuration instance .