From ce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Mon, 12 Nov 2012 11:36:31 +0000 Subject: reorg code, license headers --- app.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'app.php') diff --git a/app.php b/app.php index 5dc16a38a..86db0b9e4 100644 --- a/app.php +++ b/app.php @@ -22,16 +22,19 @@ * option) any later version. */ -require 'lib/Pinq/Controller.php'; -require 'lib/Pinq/App.php'; - -$pc = new Pinq_Controller(__DIR__, $_SERVER); -$pc->init(); - $routes = array( -// 'downloads' => 'MGA_Downloads' + //'downloads' => 'MGA_Downloads' ); -$pc->run($routes); +require 'lib/Pinq/Controller.php'; +require 'lib/Pinq/App.php'; +require 'lib/Pinq/Cache.php'; +$cache = new Pinq_Memcache_Cache(20); +Pinq_Controller::run( + __DIR__, + $routes, + $_SERVER, + new Pinq_Memcache_Cache(20) +); -- cgit v1.2.1