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