title: How autoloader works in zend framework 2
body: <p>I am just trying to create a package for packagist, a zend framework 2 user authentication module, <a href="https://packagist.org/packages/tahmina8765/zf2auth" rel="nofollow">https://packagist.org/packages/tahmina8765/zf2auth</a></p>
  
  <p>When I keep this zf2auth folder in my modules folder, it works. But when I download it with composer, it downloaded in vendor/tahmina8765/zf2auth.
  In this folder, it does not work. I mean, I have added this module in application.config.php -</p>
  
  <pre><code>'modules' =&gt; array(
      ...
      'Zf2auth'
  ),
  </code></pre>
  
  <p>but here it does not work. If I keep it on step ahead, ie. vendor/zf2auth it works again.</p>
  
  <p>How can I make it workable in vendor/tahmina8765/zf2auth folder?</p>