title: Symfony2 config.php troubles: Notice: Undefined property: stdClass::$vendor-dir, Vendor libraries are missing, how to resolve?
body: <p>today, after a while, I decided to create a new Symfony2 project. I have composer installed at <code>/usr/local/bin/composer</code> and it is updated to its latest version:</p>
  
  <pre><code>$ composer self-update
  You are already using composer version etc, etc...
  </code></pre>
  
  <p>Then I have typed the usual command:</p>
  
  <pre><code>composer create-project symfony/framework-standard-edition path/to/htdocs/PDFMonitor 
  </code></pre>
  
  <p>All went good:</p>
  
  <pre><code>...
  Clearing the cache for the dev environment with debug true
  Trying to install assets as symbolic links.
  Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
  The assets were installed using symbolic links.
  Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
  The assets were installed using symbolic links.
  </code></pre>
  
  <p>Then I opened the browser and made a request to the symfony's <code>config.php</code> to be sure that actually everything was smooth, but I got this Major Problem error:</p>
  
  <p><img src="https://i.stack.imgur.com/rBn4e.png" alt="Symfony2 config.php"></p>
  
  <p>And this PHP notice and warning:</p>
  
  <pre><code>Notice: Undefined property: stdClass::$vendor-dir in /path/to/htdocs/PDFMonitor/app/SymfonyRequirements.php on line 751
  
  Notice: Undefined property: stdClass::$vendor-dir in /path/to/htdocs/PDFMonitor/app/SymfonyRequirements.php on line 751
  
  Warning: file_get_contents(/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/skeleton/app/SymfonyRequirements.php): failed to open stream: No such file or directory in /path/to/htdocs/PDFMonitor/app/SymfonyRequirements.php on line 546
  </code></pre>
  
  <p>I do not know why this is happening. I didn't use Symfony for a while, but I never had such a problem.</p>
  
  <p>What I tried:</p>
  
  <ul>
  <li>Run either <code>composer install</code> and <code>composer update</code> inside the project's root. Didn't help.</li>
  <li><p>Reinstall composer <code>curl -s https://getcomposer/installer | php</code> and then: </p>
  
  <blockquote>
    <p>$ mv composer.phar /usr/local/bin</p>
    
    <p>$ rm -R /path/to/htdocs/PDFMonitor`</p>
  </blockquote>
  
  <p>and again:</p>
  
  <blockquote>
    <p>$ composer create-project symfony/framework-standard-edition path/to/htdocs/PDFMonitor </p>
  </blockquote>
  
  <p>Again the project is created but opening <code>http://localhost/PDFMonitor/web/config.php</code> gave the previous errors.</p></li>
  </ul>
  
  <p>As I said I never experienced this problem before. </p>
  
  <p>What should I do in order to make symfony work properly again? Why Symfony doesn't see the vendors?</p>