From 6a33e832a9fa0015c81de3af0a4e6cb27db673e2 Mon Sep 17 00:00:00 2001 From: Julio Date: Mon, 23 May 2016 11:20:55 +0200 Subject: [PATCH] add App.php --- web/app.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 web/app.php diff --git a/web/app.php b/web/app.php new file mode 100644 index 0000000000..43c8e62b9f --- /dev/null +++ b/web/app.php @@ -0,0 +1,39 @@ +unregister(); +$apcLoader->register(true); +*/ + + +require_once __DIR__.'/../app/AppKernel.php'; +//require_once __DIR__.'/../app/AppCache.php'; +$request = Sonata\PageBundle\Request\RequestFactory::createFromGlobals( + 'host_with_path_by_locale' +); + +$kernel = new AppKernel('prod', false); +$kernel->loadClassCache(); +//$kernel = new AppCache($kernel); + +// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter + +$response = $kernel->handle($request); +$response->send(); +$kernel->terminate($request, $response);