début d'écriture de la classe principale Thelia

Elle hérite de Symfony\Component\HttpKernel\Kernel (/!\ aux interfaces)
mise en place d'un conteneur d'injection de dépendance à
modifier/compléter (voir comment gérer le chargement)
This commit is contained in:
Manuel Raynaud
2012-10-05 17:44:35 +02:00
parent 56446d0aa3
commit 47ccf66db5
5 changed files with 94 additions and 12 deletions

View File

@@ -3,6 +3,8 @@
use Symfony\Component\HttpFoundation\Request;
use Thelia\Core\Thelia;
use Symfony\Component\DependencyInjection;
$env = 'debug';
require __DIR__ . '/core/bootstrap.php';
@@ -18,14 +20,13 @@ if( false === in_array($request->getClientIp(), $trustIp)){
}
//$thelia = new Thelia('dev');
////
$thelia = new Thelia('dev', true);
var_dump($thelia->getContainer());
//$response = $thelia->handle($request)->prepare($request)->send();
////
//
//$thelia->terminate($request, $reponse);
Thelia::run()->send();
?>