src/Extension/DoctrineKeyValueExtension.php
private function configureEntityManager(array $config, ContainerBuilder $container)
    {
        $container->register('doctrine.key_value.configuration', 'Doctrine\KeyValueStore\Configuration')
            ->addMethodCall('setMappingDriverImpl', array(new Reference('doctrine.key_value.metadata.annotation')));

        $container->register('doctrine.key_value.entity_manager', 'Doctrine\KeyValueStore\EntityManager')
            ->addArgument(new Reference('doctrine.key_value.storage'))
            ->addArgument(new Reference('doctrine.key_value.configuration'));
    }
private function configureEntityManager(array $config, ContainerBuilder $container)
    {
        $container->register('doctrine.key_value.configuration', 'Doctrine\KeyValueStore\Configuration')
            ->addMethodCall('setMappingDriverImpl', array(new Reference('doctrine.key_value.metadata.annotation')));

        $container->register('doctrine.key_value.entity_manager', 'Doctrine\KeyValueStore\EntityManager')
            ->addArgument(new Reference('doctrine.key_value.storage'))
            ->addArgument(new Reference('doctrine.key_value.configuration'));
    }
private function configureEntityManager ( array $ config , ContainerBuilder $ container ) { $ container -> register ( 'doctrine.key_value.configuration' , 'Doctrine\KeyValueStore\Configuration' ) -> addMethodCall ( 'setMappingDriverImpl' , array ( new Reference ( 'doctrine.key_value.metadata.annotation' ) ) ) ; $ container -> register ( 'doctrine.key_value.entity_manager' , 'Doctrine\KeyValueStore\EntityManager' ) -> addArgument ( new Reference ( 'doctrine.key_value.storage' ) ) -> addArgument ( new Reference ( 'doctrine.key_value.configuration' ) ) ; }
Configure the entity manager.

@param array $config
@param ContainerBuilder $container
Configure the entity manager .