move front controller to web directory

This commit is contained in:
Manuel Raynaud
2012-12-18 16:14:43 +01:00
parent 362632bf98
commit 65291cf471
4 changed files with 71 additions and 8 deletions

17
web/index.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
use Symfony\Component\HttpFoundation\Request;
use Thelia\Core\Thelia;
//use Symfony\Component\DependencyInjection;
$env = 'prod';
require __DIR__ . '/../core/bootstrap.php';
$request = Request::createFromGlobals();
$thelia = new Thelia($env, false);
$response = $thelia->handle($request)->prepare($request)->send();
$thelia->terminate($request, $response);