jmikola/DoctrineMongoDBBundle — comment on commit fc378fbdef912acb85bb78726b51f0f88c454d47
File: DependencyInjection/DoctrineMongoDBExtension.php line 277
By jmikola:

Dropping the `odm` component in the service prefix may not be ideal, but I didn't want to risk a conflict with event managers named after a DM. I'm open to changing this if anyone has a better suggestion. Perhaps `doctrine.odm.mongodb.connection.%s_event_manager`? Changing the suffix after `%s` would complicate the trimming that takes place in the compiler pass, so we should probably stick to just altering the prefix.

I also was hesitant to dramatically alter the configuration schema to support using a single event manager for both. Practically, if a user had a default DM and connection, they could share a single event manager service. It gets hairy once they start defining multiple DM's and connections, though.