3 use Symfony\Component\ClassLoader\ApcClassLoader
;
4 use Symfony\Component\HttpFoundation\Request
;
6 $loader = require_once __DIR__
.'/../app/bootstrap.php.cache';
8 // Use APC for autoloading to improve performance.
9 // Change 'sf2' to a unique prefix in order to prevent cache key conflicts
10 // with other applications also using APC.
12 $apcLoader = new ApcClassLoader('sf2', $loader);
13 $loader->unregister();
14 $apcLoader->register(true);
17 require_once __DIR__
.'/../app/AppKernel.php';
18 //require_once __DIR__.'/../app/AppCache.php';
20 $kernel = new AppKernel('prod', false);
21 $kernel->loadClassCache();
22 //$kernel = new AppCache($kernel);
24 // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
25 //Request::enableHttpMethodParameterOverride();
26 $request = Request
::createFromGlobals();
27 $response = $kernel->handle($request);
29 $kernel->terminate($request, $response);