Sylius\Bundle\ResourceBundle\DependencyInjection\Driver\Doctrine\DoctrineODMDriver::getManagerServiceId PHP Method

getManagerServiceId() protected method

protected getManagerServiceId ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
    protected function getManagerServiceId(MetadataInterface $metadata)
    {
        if ($objectManagerName = $this->getObjectManagerName($metadata)) {
            return sprintf('doctrine_mongodb.odm.%s_document_manager', $objectManagerName);
        }
        return 'doctrine_mongodb.odm.document_manager';
    }