Symfony 3 - EntityManager dependency injection with multiple db connections
问题 I have setup a Custom Authenticator using guard and auto wired the service. This is tested and works fine with just MySQL configured. I have now specified a second database connection (oracle), but Symfony will now not allow autowiring in my service configuration, because it does not know which database connection to use when injecting EntityManager in to the custom Authenticator class. Any idea how I can Configure the Dependency Injection to use a specific database connection so I can