first commit after reset
[mixstore.git] / web / app.php
1 <?php
2
3 use Symfony\Component\ClassLoader\ApcClassLoader;
4 use Symfony\Component\HttpFoundation\Request;
5
6 $loader = require_once __DIR__.'/../app/bootstrap.php.cache';
7
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.
11 /*
12 $apcLoader = new ApcClassLoader('sf2', $loader);
13 $loader->unregister();
14 $apcLoader->register(true);
15 */
16
17 require_once __DIR__.'/../app/AppKernel.php';
18 //require_once __DIR__.'/../app/AppCache.php';
19
20 $kernel = new AppKernel('prod', false);
21 $kernel->loadClassCache();
22 //$kernel = new AppCache($kernel);
23
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);
28 $response->send();
29 $kernel->terminate($request, $response);