Daniel@0: <?php Daniel@0: Daniel@0: use Symfony\Component\ClassLoader\ApcClassLoader; Daniel@0: use Symfony\Component\HttpFoundation\Request; Daniel@0: Daniel@0: $loader = require_once __DIR__.'/app/bootstrap.php.cache'; Daniel@0: Daniel@0: // Use APC for autoloading to improve performance. Daniel@0: // Change 'sf2' to a unique prefix in order to prevent cache key conflicts Daniel@0: // with other applications also using APC. Daniel@0: /* Daniel@0: $apcLoader = new ApcClassLoader('sf2', $loader); Daniel@0: $loader->unregister(); Daniel@0: $apcLoader->register(true); Daniel@0: */ Daniel@0: Daniel@0: require_once __DIR__.'/app/AppKernel.php'; Daniel@0: //require_once __DIR__.'/app/AppCache.php'; Daniel@0: Daniel@0: $kernel = new AppKernel('prod', false); Daniel@0: $kernel->loadClassCache(); Daniel@0: //$kernel = new AppCache($kernel); Daniel@0: Daniel@0: // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter Daniel@0: //Request::enableHttpMethodParameterOverride(); Daniel@0: $request = Request::createFromGlobals(); Daniel@0: $response = $kernel->handle($request); Daniel@0: $response->send(); Daniel@0: $kernel->terminate($request, $response);