title: Symfony FileLoaderLoadException but class does exist
body: <p>I've been using Symfony 3 since yesterday but are having a hard time with the auto-wiring.</p>
  
  <p>For some reason the FileLoader can't find my class while it does exist.</p>
  
  <p>In the services.yml I have the following:</p>
  
  <pre><code>services:
      _defaults:
          autowire: true
          autoconfigure: true
          public: true
  
      RideShare\Infrastructure\:
          resource: '../../src/RideShare/Infrastructure/*'
  </code></pre>
  
  <p>In the folder <code>src/RideShare/Infrastructure/EventStore/Doctrine</code> is have the file <code>DoctrineEventStore.php</code> with the following contents:</p>
  
  <pre><code>&lt;?php
  
  namespace RideShare\Infrastructure\EventStore\Doctrine;
  
  use ...;
  
  class DoctrineEventStore extends EntityRepository implements EventStore
  </code></pre>
  
  <p>But when I try to run <code>php bin/console</code> I'm getting the following exception:</p>
  
  <pre><code>Symfony\Component\Config\Exception\FileLoaderLoadException: 
  Expected to find class "RideShare\Infrastructure\EventStore\Doctrine\DoctrineEventStore" in file "[....]src/RideShare/Infrastructure/EventStore/Doctrine/DoctrineEventStore.php" while importing services from resource 
  "../../src/RideShare/Infrastructure/*", but it was not found! Check the namespace prefix used with the resource in [...]/app/config/services.yml (which is being imported from "[...]/app/config/config.yml"). in [...]/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php on line 179
  </code></pre>
  
  <p>For what I see this declaration is correct, I don't see questions like this on stackoverflow or in the Symfony documentation and I have no clue why it's failing.</p>
  
  <p>Full code can be found at <a href="https://github.com/cwdt/ride-share-demo/tree/feature/event-store" rel="nofollow noreferrer">Github</a>.</p>