tweak httpFoundation cache part for compatibility with

Thelia\HttpFoundation part
This commit is contained in:
Manuel Raynaud
2013-10-06 19:30:58 +02:00
parent 64a8aeeb33
commit c1ab54bd4e
6 changed files with 128 additions and 24 deletions

View File

@@ -46,9 +46,10 @@ if ( false === in_array($request->getClientIp(), $trustedIp)) {
$response = Response::create('Forbidden', 403)->send();
$thelia->terminate($request, $response);
} else {
//$thelia = new HttpCache($thelia);
$response = $thelia->handle($request)->prepare($request)->send();
$thelia->terminate($request, $response);
$thelia = new HttpCache($thelia);
$response = $thelia->handle($request)->send();
//$thelia->terminate($request, $response);
}