title: My composer won't update completely with Laravel 4 it gets stuck with artisan
body: <p>Here is the error I am getting:</p>
  
  <pre><code>Script php artisan optimize handling the post-update-cmd event returned with an error
  
  [RuntimeException]  
  Error Output:
  
  update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
  </code></pre>
  
  <p>This shows after:</p>
  
  <pre><code>Writing lock file
  Generating autoload files
  </code></pre>
  
  <p>I tried to delete all my folders in my vendor folder. But that did not change anything.</p>
  
  <p>I am using MAMP server on my Mac OS X.</p>
  
  <p>PHP Version 5.4.10</p>
  
  <p>mcrypt 2.5.8</p>
  
  <p>I just tried "sudo composer update --verbose" and I got this error:</p>
  
  <pre><code>sudo composer update --verbose
  Password:
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Generating autoload files
  Script php artisan optimize handling the post-update-cmd event returned with an error
  
    [RuntimeException]  
    Error Output:
      Exception trace:
       () at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:148
       Composer\EventDispatcher\EventDispatcher-&gt;doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:107
   Composer\EventDispatcher\EventDispatcher-&gt;dispatchCommandEvent() at phar:///usr/bin/composer/src/Composer/Installer.php:289
   Composer\Installer-&gt;run() at phar:///usr/bin/composer/src/Composer/Command/UpdateCommand.php:118
   Composer\Command\UpdateCommand-&gt;execute() at phar:///usr/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:244
   Symfony\Component\Console\Command\Command-&gt;run() at phar:///usr/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:897
   Symfony\Component\Console\Application-&gt;doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:191
   Symfony\Component\Console\Application-&gt;doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:117
   Composer\Console\Application-&gt;doRun() at phar:///usr/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:121
   Symfony\Component\Console\Application-&gt;run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:83
   Composer\Console\Application-&gt;run() at phar:///usr/bin/composer/bin/composer:43
   require() at /usr/bin/composer:15
  </code></pre>
  
  <p>Here is the error I found in my PHP error logs:</p>
  
  <pre><code>[04-Nov-2013 20:45:44 Europe/Berlin] PHP Fatal error:  Class 'Patchwork\Utf8\Bootup' not found in /Applications/MAMP/htdocs/-----/bootstrap/autoload.php on line 46
  </code></pre>
  
  <p>I just tried to test my composer:</p>
  
  <pre><code>sudo composer diagnose
  Password:
  Checking platform settings: OK
  Checking http connectivity: OK
  Checking composer.json: FAIL
  No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
  Name "andrew13/Laravel-4-Bootstrap-Starter-Site" does not match the best practice (e.g. lower-cased/with-dashes). We suggest using "andrew13/laravel-4-bootstrap-starter-site" instead. As such you will not be able to submit it to Packagist.
  Checking disk free space: OK
  Checking composer version: OK
  </code></pre>
  
  <p>Just applied the recommendation in the error message from the last command. Now everything is showing as OK.</p>
  
  <p>I just tried this:</p>
  
  <pre><code>curl -sS https://getcomposer.org/installer | php -- --check
  #!/usr/bin/env php
  All settings correct for using Composer
  </code></pre>
  
  <p>I am now getting new errors in my PHP Error logs:</p>
  
  <pre><code>[05-Nov-2013 05:45:45 Europe/Berlin] PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class config does not exist' in /Applications/MAMP/htdocs/---/bootstrap/compiled.php:165
  Stack trace:
  #0 /Applications/MAMP/htdocs/---/bootstrap/compiled.php(165): ReflectionClass-&gt;__construct('config')
  #1 /Applications/MAMP/htdocs/---/bootstrap/compiled.php(142): Illuminate\Container\Container-&gt;build('config', Array)
  #2 /Applications/MAMP/htdocs/---/bootstrap/compiled.php(444): Illuminate\Container\Container-&gt;make('config', Array)
  #3 /Applications/MAMP/htdocs/---/bootstrap/compiled.php(233): Illuminate\Foundation\Application-&gt;make('config')
  #4 /Applications/MAMP/htdocs/---/bootstrap/compiled.php(3151): Illuminate\Container\Container-&gt;offsetGet('config')
  #5 /Applications/MAMP/htdocs/---/bootstrap/compiled.php(103): Illuminate\Exception\ExceptionServiceProvider-&gt;Illuminate\Exception\{closure}(Object(Illuminate\Foundation\Application))
  #6 /Applications/MAMP/htdocs/---/bootstrap/compiled.php(163): Illuminate\Container\Container-&gt;Illum in /Applications/MAMP/htdocs/---/bootstrap/compiled.php on line 165
  </code></pre>