title: How to use Symfony autowiring with multiple entity managers
body: <p>I would like to use the autowiring in a service that use 2 different entity manager. How to achieve something like that ?</p>
  
  <pre><code>use Doctrine\ORM\EntityManager;
  class TestService
  {
      public function __construct(EntityManager $emA, EntityManager $emB)
      {
      }
  }
  </code></pre>
  
  <p>My service.yml file use to be configured like that :</p>
  
  <pre><code>    app.testservice:
          class: App\Services\TestService
          arguments:
              - "@doctrine.orm.default_entity_manager"
              - "@doctrine.orm.secondary_entity_manager"
  </code></pre>