]>
Commit | Line | Data |
---|---|---|
93fd4692 NL |
1 | <?php |
2 | ||
93fd4692 NL |
3 | use Symfony\Component\HttpFoundation\Request; |
4 | ||
5c895a7f JB |
5 | /** |
6 | * @var Composer\Autoload\ClassLoader | |
7 | */ | |
8 | $loader = require __DIR__.'/../app/autoload.php'; | |
73cd160b | 9 | include_once __DIR__.'/../var/bootstrap.php.cache'; |
93fd4692 | 10 | |
93fd4692 NL |
11 | $kernel = new AppKernel('prod', false); |
12 | $kernel->loadClassCache(); | |
13 | //$kernel = new AppCache($kernel); | |
14 | ||
15 | // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter | |
16 | //Request::enableHttpMethodParameterOverride(); | |
17 | $request = Request::createFromGlobals(); | |
18 | $response = $kernel->handle($request); | |
19 | $response->send(); | |
20 | $kernel->terminate($request, $response); |