title: PHPExcel autoload with symfony 2.3.8
body: <p>I have an issue in using PHPExcel with symfony 2.3.8, I have installed phpexcel through the following composer edit</p>
  
  <pre><code>"require": {
      "phpoffice/phpexcel": "*"
  }
  </code></pre>
  
  <p>Then in the command prompt I have navigated to the folder where my composer.json and executed the command composer update, it updates everything related to phpexcel in the vendor folder</p>
  
  <pre><code>vendor\
        phpoffice\
                phpexcel\Classes\
                         PHPExcel\
                         PHPExcel.php
  </code></pre>
  
  <p>My autoload_namespaces.php in vendor\composer\ looks like</p>
  
  <pre><code>$vendorDir = dirname(dirname(__FILE__));
  $baseDir = dirname($vendorDir);
  
  return array(
       .....
       'PHPExcel' =&gt; array($vendorDir . '/phpoffice/phpexcel/Classes'),
       .....
  );
  </code></pre>
  
  <p>and in my controller I have used that library by using "use PHPExcel", </p>
  
  <p>when I use the PHPExcel_Style_Alignment class it gives class not found error, If I give </p>
  
  <pre><code>use PHPExcel_Style_Alignment;
  </code></pre>
  
  <p>in the top of controller, it works fine..!, the same thing is happened to all other classes like PHPExcel_IOFactory etc..</p>
  
  <p>Whether I need to include all classes of phpexcel with the use keyword? but which is a bad practice,</p>
  
  <p>What I have to do to load all classes of phpexcel library automatically when needed?</p>