title: Undefined method registerNamespaces() symfony2
body: <p>I'm following this FOSTwitterBundle documentation:
  <a href="https://github.com/FriendsOfSymfony/FOSTwitterBundle" rel="nofollow">https://github.com/FriendsOfSymfony/FOSTwitterBundle</a></p>
  
  <p>I did it all step by step, but when I access my site, i get this error:</p>
  
  <pre><code> Fatal error: Call to undefined method Composer\Autoload\ClassLoader::registerNamespaces() in C:\xampp\htdocs\Symfony\app\autoload.php on line 16
  </code></pre>
  
  <p>My autoload.php is like this:</p>
  
  <pre><code>&lt;?php
  
  use Doctrine\Common\Annotations\AnnotationRegistry;
  
  $loader = require __DIR__.'/../vendor/autoload.php';
  
  // intl
  if (!function_exists('intl_get_error_code')) {
      require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
  
      $loader-&gt;add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
  }
  
  AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  
  $loader-&gt;registerNamespaces(array(
          // ...
          'FOS'    =&gt; __DIR__.'/../vendor/bundles',
          // ...
    ));
  
  return $loader;
  </code></pre>
  
  <p>What should I do?</p>