title: ReflectionException: Class does not exist
body: <p>I'm running into this error when I tried to run the composer</p>
  
  <pre><code>{
      "name": "zepluf/standard-edition",
      "description": "The \"ZePLUF Standard Edition\" distribution",
      "autoload": {
          "psr-0": { "": "src/" }
      },
      "require": {
          "php": "&gt;=5.3.3",
          "symfony/symfony": "&gt;=2.1",
          "symfony/framework-bundle": "&gt;=2.1",
          "doctrine/orm": "&gt;=2.2.3,&lt;2.4-dev",
          "doctrine/doctrine-bundle": "1.0.*",
          "twig/extensions": "1.0.*",
          "symfony/assetic-bundle": "2.1.*",
          "symfony/swiftmailer-bundle": "2.1.*",
          "symfony/monolog-bundle": "2.1.*",
          "sensio/distribution-bundle": "2.1.*",
          "sensio/framework-extra-bundle": "2.1.*",
          "sensio/generator-bundle": "2.1.*"
      },
      "scripts": {
          "post-install-cmd": [
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
          ],
          "post-update-cmd": [
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
          ]
      },
      "minimum-stability": "dev",
      "extra": {
          "symfony-app-dir": "app",
          "symfony-web-dir": "web"
      }
  }
  </code></pre>
  
  <p>It seems like somehow an empty classname is passed in, but I'm not so sure how to do debug back trace to locate where it is.</p>
  
  <pre><code>D:\Programming\xampp\htdocs\demo\zepluf&gt;composer update --verbose
  Loading composer repositories with package information
  Updating dependencies
  Nothing to install or update
  Generating autoload files
  
  
  
    [ReflectionException]
    Class  does not exist
  
  
  
  Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handl
  ing the post-update-cmd event terminated with an exception
  
  
  
    [RuntimeException]
    An error occurred when executing the ""cache:clear --no-warmup"" command.
  
  
  
  Exception trace:
   () at D:\Programming\xampp\htdocs\demo\zepluf\vendor\sensio\distribution-bundle
  \Sensio\Bundle\DistributionBundle\Composer\ScriptHandler.php:137
   Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at D:
  \Programming\xampp\htdocs\demo\zepluf\vendor\sensio\distribution-bundle\Sensio\B
  undle\DistributionBundle\Composer\ScriptHandler.php:48
   Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:/
  /C:/ProgramData/Composer/bin/composer.phar/src/Composer/Script/EventDispatcher.p
  hp:122
   Composer\Script\EventDispatcher-&gt;executeEventPhpScript() at phar://C:/ProgramDa
  ta/Composer/bin/composer.phar/src/Composer/Script/EventDispatcher.php:101
   Composer\Script\EventDispatcher-&gt;doDispatch() at phar://C:/ProgramData/Composer
  /bin/composer.phar/src/Composer/Script/EventDispatcher.php:74
   Composer\Script\EventDispatcher-&gt;dispatchCommandEvent() at phar://C:/ProgramDat
  a/Composer/bin/composer.phar/src/Composer/Installer.php:237
   Composer\Installer-&gt;run() at phar://C:/ProgramData/Composer/bin/composer.phar/s
  rc/Composer/Command/UpdateCommand.php:82
   Composer\Command\UpdateCommand-&gt;execute() at phar://C:/ProgramData/Composer/bin
  /composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.
  php:238
   Symfony\Component\Console\Command\Command-&gt;run() at phar://C:/ProgramData/Compo
  ser/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Applicati
  on.php:193
   Symfony\Component\Console\Application-&gt;doRun() at phar://C:/ProgramData/Compose
  r/bin/composer.phar/src/Composer/Console/Application.php:101
   Composer\Console\Application-&gt;doRun() at phar://C:/ProgramData/Composer/bin/com
  poser.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:106
   Symfony\Component\Console\Application-&gt;run() at phar://C:/ProgramData/Composer/
  bin/composer.phar/src/Composer/Console/Application.php:74
   Composer\Console\Application-&gt;run() at phar://C:/ProgramData/Composer/bin/compo
  ser.phar/bin/composer:37
   require() at C:\ProgramData\Composer\bin\composer.phar:15
  
  
  update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-custom-instal
  lers] [--no-scripts] [--no-progress] [-v|--verbose] [-o|--optimize-autoloader] [
  packages1] ... [packagesN]
  </code></pre>