title: Cannot autowire service in symfony
body: <p>I'm trying to split one big service.yaml to few smaller files. In origin service.yaml I had</p>
  
  <p>services:</p>
  
  <pre><code>_defaults:
      autowire: true
      autoconfigure: true
      public: false
  
  App\Domain\Country\Infrastructure\Repository\CountryRepository:
      public: true
      class: App\Domain\Country\Infrastructure\Repository\CountryRepository
      factory: ["@doctrine.orm.default_entity_manager", getRepository]
      arguments: [App\Domain\Country\Entity\Country]
  </code></pre>
  
  <p>Then I added import at the begining service.yam</p>
  
  <pre><code>imports:
    - {resource: services/repositories.yaml}
  </code></pre>
  
  <p>repositories.yaml</p>
  
  <pre><code>services:
      _defaults:
          autowire: true
          autoconfigure: true
          public: true
  
       App\Domain\Country\Infrastructure\Repository\CountryRepository:
          factory: ["@doctrine.orm.default_entity_manager", getRepository]
          arguments: [App\Domain\Country\Entity\Country]
  </code></pre>
  
  <p>After that I started to get error</p>
  
  <pre><code>  Cannot autowire service "App\Domain\Country\Infrastructure\Repository\Count  
    ryRepository": argument "$class" of method "Doctrine\ORM\EntityRepository::  
    __construct()" references class "Doctrine\ORM\Mapping\ClassMetadata" but no  
     such service exists.  
  </code></pre>
  
  <p>What's wrong there?</p>
  
  <ul>
  <li><a href="https://pastebin.com/Uy85YJmc" rel="noreferrer">https://pastebin.com/Uy85YJmc</a> (service.yaml)</li>
  <li><a href="https://pastebin.com/ZesAw3sD" rel="noreferrer">https://pastebin.com/ZesAw3sD</a> (repositories.yaml)</li>
  </ul>