aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/app.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-15 15:38:31 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-15 15:38:31 +0100
commit1930c19d8214c05ceefac5ac011a6b6e7e4a983d (patch)
tree8f07ffa139c7c2e883a560ef7dbb35a76adfb8dd /web/app.php
parent790573d45899504bdecd2573c8f64018e23b139e (diff)
parent131eaa3e94ace8d75d6218e5c7c3aa58d5bb5009 (diff)
downloadwallabag-1930c19d8214c05ceefac5ac011a6b6e7e4a983d.tar.gz
wallabag-1930c19d8214c05ceefac5ac011a6b6e7e4a983d.tar.zst
wallabag-1930c19d8214c05ceefac5ac011a6b6e7e4a983d.zip
Merge pull request #1524 from wallabag/sf2.8
Upgrade to Symfony 3.0
Diffstat (limited to 'web/app.php')
-rw-r--r--web/app.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/app.php b/web/app.php
index c5c26409..5c5ee03b 100644
--- a/web/app.php
+++ b/web/app.php
@@ -1,23 +1,23 @@
1<?php 1<?php
2 2
3use Symfony\Component\ClassLoader\ApcClassLoader;
4use Symfony\Component\HttpFoundation\Request; 3use Symfony\Component\HttpFoundation\Request;
5 4
6$loader = require_once __DIR__.'/../app/bootstrap.php.cache'; 5/**
6 * @var Composer\Autoload\ClassLoader
7 */
8$loader = require __DIR__.'/../app/autoload.php';
9include_once __DIR__.'/../var/bootstrap.php.cache';
7 10
8// Enable APC for autoloading to improve performance. 11// Enable APC for autoloading to improve performance.
9// You should change the ApcClassLoader first argument to a unique prefix 12// You should change the ApcClassLoader first argument to a unique prefix
10// in order to prevent cache key conflicts with other applications 13// in order to prevent cache key conflicts with other applications
11// also using APC. 14// also using APC.
12/* 15/*
13$apcLoader = new ApcClassLoader(sha1(__FILE__), $loader); 16$apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader);
14$loader->unregister(); 17$loader->unregister();
15$apcLoader->register(true); 18$apcLoader->register(true);
16*/ 19*/
17 20
18require_once __DIR__.'/../app/AppKernel.php';
19//require_once __DIR__.'/../app/AppCache.php';
20
21$kernel = new AppKernel('prod', false); 21$kernel = new AppKernel('prod', false);
22$kernel->loadClassCache(); 22$kernel->loadClassCache();
23//$kernel = new AppCache($kernel); 23//$kernel = new AppCache($kernel);