title: Adding Vendor Specific Module To Zend Framework 2.0
body: <p>I have looked at some of the previous Stack posts out there on how to load a vendor library in ZF2, but I think they are a bit dated. I am trying to figure out how to add my vendor library "Propel" correctly. </p>
  
  <p>I get an error from Zend Framework Saying "Unable to load 'Propel' Module"</p>
  
  <p>Here is my setup.</p>
  
  <p>In my application.config.php</p>
  
  <pre><code>return array(
  'modules' =&gt; array(
      'Application',
      'Propel' // Module I am trying to add
  ),
  'module_listener_options' =&gt; array(
      'config_glob_paths'    =&gt; array(    
          'config/autoload/{,*.}{global,local}.php',
      ),
      'module_paths' =&gt; array(
          './module',
          './vendor',
      ),
  ),
  </code></pre>
  
  <p>);</p>
  
  <p>Here is the setup of my vendor directory</p>
  
  <pre><code>-Vendor
      -Propel
         -runtime
         -config
         -autoload_classmap.php
         -Module.php
  </code></pre>
  
  <p>Here is my Module.php</p>
  
  <pre><code>namespace ORM;
  
  class Module
  {
  public function getAutoloaderConfig()
  {
      return array(
          'Zend\Loader\ClassMapAutoloader' =&gt; array(
              __DIR__ . '/autoload_classmap.php',
          )
      );
  }
  
  public function getConfig()
  {
      return include __DIR__ . '/config/module.config.php';
  }
   }
  </code></pre>
  
  <p>Here is my autoload_classmap.php</p>
  
  <pre><code>// Generated by ZF2's ./bin/classmap_generator.php
  return array(
      'Propel'                      =&gt; __DIR__ . '/runtime/lib/Propel.php'
  );
  </code></pre>
  
  <p>Any ideas?</p>