Search code examples
phpsymfonysymfony-2.3symfony-2.8

Interface 'Symfony\Component\HttpKernel\HttpKernelInterface' not found


After upgrading from Symfony 2.3 to 2.8 I get the following error:

Fatal error: Interface 'Symfony\Component\HttpKernel\HttpKernelInterface' not found in app/bootstrap.php.cache on line 2629

Already tried removing the vendor folder and doing a composer install.

Any ideas?


Solution

  • I had to add the following line to web/app.php and web/app_dev.php:

    $loader = require __DIR__.'/../app/autoload.php';
    

    And also update app/console.

    Found this by comparing my files with a fresh install of Symfony 2.8