title: Composer fails executing app/console cache:clear on symfony 3
body: <p>I cant run <code>composer install</code> because it fails when executing the <code>post-install-cmd</code>-scripts.</p>
  
  <p>The reason is Symfony 3 moved the console app from the app folder to a bin folder.</p>
  
  <p>I have tried <code>composer clear-cache</code> and <code>composer self-update</code>, so I can verify that I'm running the latest version of composer without any luck... Can anyone help me?</p>
  
  <p>Results from <code>composer diagnose</code></p>
  
  <pre><code>composer diagnose
  Checking composer.json: FAIL
  Defining autoload.psr-4 with an empty namespace prefix is a bad idea for performance
  require.symfony/symfony : unbound version constraints (dev-master) should be avoided
  Checking platform settings: OK
  Checking git settings: OK
  Checking http connectivity to packagist: OK
  Checking https connectivity to packagist: OK
  Checking github.com rate limit: OK
  Checking disk free space: OK
  Checking composer version: OK
  </code></pre>
  
  <p>Edit:
  Added my composer.json file: <a href="http://pastie.org/10638893">Pastie</a></p>
  
  <p>Extra's part:</p>
  
  <pre><code>"extra": {
      "symfony-app-dir": "app",
      "symfony-bin-dir": "bin",
      "symfony-var-dir": "var",
      "symfony-web-dir": "web",
      "symfony-tests-dir": "tests",
      "symfony-assets-install": "relative",
      "incenteev-parameters": {
          "file": "app/config/parameters.yml"
      }
  }
  </code></pre>
  
  <p>Error from Composer:</p>
  
  <pre><code>Could not open input file: app/console
  Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
  
  
  
    [RuntimeException]                                                         
    An error occurred when executing the "'cache:clear --no-warmup'" command:  
    Could not open input file: app/console                                     
    .                                                                          
  </code></pre>
  
  <p>Manuall test of <code>bin/composer cache:clear</code>:</p>
  
  <pre><code>bin/console cache:clear
  
   // Clearing the cache for the dev environment with debug true
  
  
   [OK] Cache for the "dev" environment (debug=true) was successfully cleared.                                            
  </code></pre>
  
  <p>The problem repo: <a href="https://bitbucket.org/Richardh87/messenger">https://bitbucket.org/Richardh87/messenger</a></p>