title: Problems for autoload class namespace without composer
body: <p>I've got some problems for <strong>register a bundle in a Symfony2 project without Composer</strong>.<br/>
  In my company I can't use Composer due to proxy.</p>
  
  <p>I succesfully install <code>FOSUserBundle</code> so I don't understand why it doesn't work with <code>KnpSnappyBundle</code>...</p>
  
  <p><strong>My <code>vendor</code> tree :</strong> </p>
  
  <pre><code>vendor/
      friendofsymfony/
          user-bundle/
              FOS/
                  UserBundle/
                      FOSUserBundle.php
      knplabs/
          knp-snappy-bundle/
              Knp/
                  Bundle/
                      SnappyBundle/
                          KnpSnappyBundle.php
  </code></pre>
  
  <p><strong>My <code>app/autoload.php</code> :</strong> </p>
  
  <pre><code>&lt;?php
  
  use Doctrine\Common\Annotations\AnnotationRegistry;
  use Composer\Autoload\ClassLoader;
  
  /**
   * @var ClassLoader $loader
   */
  $loader = require __DIR__.'/../vendor/autoload.php';
  $loader-&gt;add('FOS', __DIR__.'/../vendor/friendsofsymfony/user-bundle');
  $loader-&gt;add('Knp', __DIR__.'/../vendor/knplabs/knp-snappy-bundle');
  
  AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  
  return $loader;
  </code></pre>
  
  <p><strong>My <code>app/AppKernel.php</code> :</strong> </p>
  
  <pre><code>&lt;?php
  
  use Symfony\Component\HttpKernel\Kernel;
  use Symfony\Component\Config\Loader\LoaderInterface;
  
  class AppKernel extends Kernel
  {
      public function registerBundles()
      {
          $bundles = array(
              new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
              new Symfony\Bundle\SecurityBundle\SecurityBundle(),
              new Symfony\Bundle\TwigBundle\TwigBundle(),
              new Symfony\Bundle\MonologBundle\MonologBundle(),
              new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
              new Symfony\Bundle\AsseticBundle\AsseticBundle(),
              new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
              new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
              new My\Bundle\OwnBundle\MyOwnBundle(),
              new FOS\UserBundle\FOSUserBundle(),
              new Knp\Bundle\SnappyBundle\KnpSnappyBundle()
          );
  
          if (in_array($this-&gt;getEnvironment(), array('dev', 'test'))) {
              $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
              $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
              $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
          }
  
          return $bundles;
      }
  
      public function registerContainerConfiguration(LoaderInterface $loader)
      {
          $loader-&gt;load(__DIR__.'/config/config_'.$this-&gt;getEnvironment().'.yml');
      }
  }
  </code></pre>
  
  <p><strong>The error message :</strong> </p>
  
  <pre><code>ClassNotFoundException: Attempted to load class "KnpSnappyBundle" from namespace "Knp\Bundle\SnappyBundle" in C:\xampp\htdocs\my-project\app\AppKernel.php line 25. Do you need to "use" it from another namespace?
  </code></pre>
  
  <p>Please help !</p>