]>
Commit | Line | Data |
---|---|---|
93fd4692 NL |
1 | <?php |
2 | ||
93fd4692 NL |
3 | use Symfony\Component\HttpFoundation\Request; |
4 | ||
6fc95673 | 5 | require __DIR__.'/../vendor/autoload.php'; |
93fd4692 | 6 | |
93fd4692 | 7 | $kernel = new AppKernel('prod', false); |
93fd4692 NL |
8 | //$kernel = new AppCache($kernel); |
9 | ||
10 | // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter | |
11 | //Request::enableHttpMethodParameterOverride(); | |
12 | $request = Request::createFromGlobals(); | |
13 | $response = $kernel->handle($request); | |
14 | $response->send(); | |
15 | $kernel->terminate($request, $response); |