title: Autoloader expected class Symfony2
body: <p>I'm using symfony 2.3 framework and the autoloader claims to have found the file but no class:</p>
  
  <pre><code>RuntimeException: The autoloader expected class "Sensio\Bundle\
  FrameworkExtraBundle\Request\ParamConverter\DateTimeParamConverter" 
  to be defined in file "/home/na/auth/vendor/sensio/framework-extra-bundle/
  Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/
  DateTimeParamConverter.php". The file was found but the class was not in it, 
  the class name or namespace probably has a typo.
  </code></pre>
  
  <p>The file this is refering to is shown bellow:</p>
  
  <pre><code>&lt;?php
  
  /*
   * This file is part of the Symfony framework.
   *
   * (c) Fabien Potencier &lt;fabien@symfony.com&gt;
   *
   * This source file is subject to the MIT license that is bundled
   * with this source code in the file LICENSE.
   */
  
  namespace Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter;
  
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationInterface;
  use Symfony\Component\HttpFoundation\Request;
  use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
  use DateTime;
  
  /**
   * Convert DateTime instances from request attribute variable.
   *
   * @author Benjamin Eberlei &lt;kontakt@beberlei.de&gt;
   */
  class DateTimeParamConverter implements ParamConverterInterface
  {
      /**
       * @{inheritdoc}
       * 
       * @throws NotFoundHttpException When invalid date given
       */
      public function apply(Request $request, ConfigurationInterface $configuration)
      {
          $param = $configuration-&gt;getName();
  
          if (!$request-&gt;attributes-&gt;has($param)) {
              return false;
          }
  
          $options = $configuration-&gt;getOptions();
          $value   = $request-&gt;attributes-&gt;get($param);
  
          $date = isset($options['format'])
              ? DateTime::createFromFormat($options['format'], $value)
              : new DateTime($value);
  
          if (!$date) {
              throw new NotFoundHttpException('Invalid date given.');
          }
  
          $request-&gt;attributes-&gt;set($param, $date);
  
          return true;
      }
  
      /**
       * @{inheritdoc}
       */
      public function supports(ConfigurationInterface $configuration)
      {
          if (null === $configuration-&gt;getClass()) {
              return false;
          }
  
          return "DateTime" === $configuration-&gt;getClass();
      }
  }
  </code></pre>
  
  <p>Anyway, some detail that might help was that I recently installed Doctrine and ran the commands ... </p>
  
  <pre><code> 2028  php app/console doctrine:schema:create
   2029  php app/console doctrine:generate:entities Auth
  </code></pre>
  
  <p>After those commands, symfony stopped working. I don't know if this is some weird bug or something. If you need more information, I can post. Thanks for any help.</p>