title: Symfony PHP Fatal error: Class 'Symfony\Component\HttpKernel\Kernel' not found
body: <p>Hopefully someone else has run into this problem.  Just downloaded a Symfony project and I'm getting the above error message :  "PHP Fatal error:  Class 'Symfony\Component\HttpKernel\Kernel' not found in /Applications/MAMP/htdocs/myapp/app/AppKernel.php on line 7</p>
  
  <p>I'm fairly new to setting up Symfony and here's what my app/autoload.php looks like:</p>
  
  <pre><code>&lt;?php
  
  use Doctrine\Common\Annotations\AnnotationRegistry;
  
  $loader = require __DIR__.'/../vendor/autoload.php';
  
  
  // intl
  if (!function_exists('intl_get_error_code')) {
      require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
  }
  
  AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  
  return $loader;
  </code></pre>
  
  <p>And here's what my app_dev.php file looks like:</p>
  
  <pre><code>#!/usr/bin/env php
  &lt;?php
  
  // if you don't want to setup permissions the proper way, just uncomment the following  PHP line
   // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup   for more information
  umask(0000);
  
  set_time_limit(0);
  
  require_once __DIR__.'/bootstrap.php.cache';
  require_once __DIR__.'/AppKernel.php';
  
  use Symfony\Bundle\FrameworkBundle\Console\Application;
  use Symfony\Component\Console\Input\ArgvInput;
  
  $input = new ArgvInput();
  $env = $input-&gt;getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
  $debug = getenv('SYMFONY_DEBUG') !== '0' &amp;&amp; !$input-&gt;hasParameterOption(array('--no-debug', '')) &amp;&amp; $env !== 'prod';
  
  $kernel = new AppKernel($env, $debug);
  $application = new Application($kernel);
  $application-&gt;run($input);
  </code></pre>
  
  <p>If anyone could point me in the right direction that would be great thanks!</p>