src/Extension/DoctrineKeyValueExtension.php
private function configureMetadataDriver(array $config, ContainerBuilder $container)
    {
        $container->register('doctrine.key_value.metadata.annotation.reader', 'Doctrine\Common\Annotations\AnnotationReader')
            ->setPublic(false);

        $container->register('doctrine.key_value.metadata.annotation', 'Doctrine\KeyValueStore\Mapping\AnnotationDriver')
            ->setPublic(false)
            ->addArgument(new Reference('doctrine.key_value.metadata.annotation.reader'));
    }
private function configureMetadataDriver(array $config, ContainerBuilder $container)
    {
        $container->register('doctrine.key_value.metadata.annotation.reader', 'Doctrine\Common\Annotations\AnnotationReader')
            ->setPublic(false);

        $container->register('doctrine.key_value.metadata.annotation', 'Doctrine\KeyValueStore\Mapping\AnnotationDriver')
            ->setPublic(false)
            ->addArgument(new Reference('doctrine.key_value.metadata.annotation.reader'));
    }
private function configureMetadataDriver ( array $ config , ContainerBuilder $ container ) { $ container -> register ( 'doctrine.key_value.metadata.annotation.reader' , 'Doctrine\Common\Annotations\AnnotationReader' ) -> setPublic ( false ) ; $ container -> register ( 'doctrine.key_value.metadata.annotation' , 'Doctrine\KeyValueStore\Mapping\AnnotationDriver' ) -> setPublic ( false ) -> addArgument ( new Reference ( 'doctrine.key_value.metadata.annotation.reader' ) ) ; }
Configure the metadata driver.

@param array $config
@param ContainerBuilder $container
Configure the metadata driver .