start using symfony 2 reverse proxy

This commit is contained in:
Manuel Raynaud
2013-10-05 11:52:13 +02:00
parent 5b2d9cd2da
commit 16af55ae77
3 changed files with 55 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
<?php
use Thelia\Core\HttpKernel\HttpCache\HttpCache;
use Thelia\Core\Thelia;
use Thelia\Core\HttpFoundation\Request;
@@ -10,7 +11,7 @@ require __DIR__ . '/../core/bootstrap.php';
$request = Request::createFromGlobals();
$thelia = new Thelia("prod", false);
//$thelia = new HttpCache($thelia);
$response = $thelia->handle($request)->prepare($request)->send();
$thelia->terminate($request, $response);