aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/app.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
commit93fd4692f6eb753cae16358131c8049d84cfbb41 (patch)
tree1ef2f66eb378cf419d1aa033a2c772539e60537d /web/app.php
parent0440249631164a378981d014bf71b617c082bf5a (diff)
downloadwallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.gz
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.zst
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.zip
symfony is there
Diffstat (limited to 'web/app.php')
-rw-r--r--web/app.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/web/app.php b/web/app.php
new file mode 100644
index 00000000..c5c26409
--- /dev/null
+++ b/web/app.php
@@ -0,0 +1,30 @@
1<?php
2
3use Symfony\Component\ClassLoader\ApcClassLoader;
4use Symfony\Component\HttpFoundation\Request;
5
6$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
7
8// Enable APC for autoloading to improve performance.
9// You should change the ApcClassLoader first argument to a unique prefix
10// in order to prevent cache key conflicts with other applications
11// also using APC.
12/*
13$apcLoader = new ApcClassLoader(sha1(__FILE__), $loader);
14$loader->unregister();
15$apcLoader->register(true);
16*/
17
18require_once __DIR__.'/../app/AppKernel.php';
19//require_once __DIR__.'/../app/AppCache.php';
20
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);