]> git.immae.eu Git - github/wallabag/wallabag.git/blame - web/app.php
Fix number of entries in tag/list
[github/wallabag/wallabag.git] / web / app.php
CommitLineData
93fd4692
NL
1<?php
2
93fd4692
NL
3use Symfony\Component\HttpFoundation\Request;
4
5c895a7f
JB
5/**
6 * @var Composer\Autoload\ClassLoader
7 */
8$loader = require __DIR__.'/../app/autoload.php';
73cd160b 9include_once __DIR__.'/../var/bootstrap.php.cache';
93fd4692
NL
10
11// Enable APC for autoloading to improve performance.
12// You should change the ApcClassLoader first argument to a unique prefix
13// in order to prevent cache key conflicts with other applications
14// also using APC.
15/*
5c895a7f 16$apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader);
93fd4692
NL
17$loader->unregister();
18$apcLoader->register(true);
19*/
20
93fd4692
NL
21$kernel = new AppKernel('prod', false);
22$kernel->loadClassCache();
23//$kernel = new AppCache($kernel);
24
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);
29$response->send();
30$kernel->terminate($request, $response);