title: composer autoload error
body: <p>I'm trying to work with composer and will create own packages. My package project has the following file structure:</p>
  
  <pre><code>scr/Scheduler.php
  .gitignore
  composer.json
  </code></pre>
  
  <p>The test class:</p>
  
  <pre><code>namespace david\Scheduler;
  
  use Symfony\Component\Yaml\Parser;
  
  class Scheduler
  {
      private $yamlParser;
  
      public function __construct()
      {
          $this-&gt;yamlParser = new Parser();
      }
  }
  </code></pre>
  
  <p>and the composer.json file</p>
  
  <pre><code>...
  "require": {
      "symfony/yaml": "~3.0.3"
  },
  "autoload": {
      "psr-4": {
          "david\\Scheduler\\": "src/"
      }
  }
  </code></pre>
  
  <p>That all I've committed to a private github repository. Currently I've only the master branch and no tags.
  My second step was to create a client project with the following composer.json file:</p>
  
  <pre><code>"repositories": [
      {
          "type": "package",
          "package": {
              "name": "david/scheduler",
              "type": "package",
              "version": "dev-master",
              "source": {
                  "url": "git@github.com:david/scheduler.git",
                  "type": "git",
                  "reference": "master"
              }
          }
      }
  ],
  "require": {
      "david/scheduler": "dev-master"
  }
  </code></pre>
  
  <p>When I'm running composer update the github project will be cloned and stored in the vendor directory. But only my package. The dependency to the symfony/yaml will not loaded.</p>
  
  <pre><code>vendor
      composer
      david/scheduler
  </code></pre>
  
  <p>Also composer create a empty autoload_psr4 file.</p>
  
  <pre><code>$vendorDir = dirname(dirname(__FILE__));
  $baseDir = dirname($vendorDir);
  
  return array(
  );
  </code></pre>
  
  <p>I think maybe there are some issues in my architecture...</p>