From 3213010d9ac562efc422cc97564955830f9bb797 Mon Sep 17 00:00:00 2001 From: tmont Date: Wed, 15 Oct 2008 04:50:45 +0000 Subject: [PATCH] now that Http::Uri is fixed, we don't need to set the request object --- src/index.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/index.php b/src/index.php index f869a29..6272470 100644 --- a/src/index.php +++ b/src/index.php @@ -11,9 +11,6 @@ /** Bootstraps the Panacea framework */ require_once 'bootstrap.php'; - $request = Request::create(HttpUtil::HTTP_METHOD_GET); - $request->uri = 'http://www.example.com'; - $uriRegex = str_replace(str_replace('/', DIRECTORY_SEPARATOR, $_SERVER['DOCUMENT_ROOT']), '', dirname(__FILE__)); $uriRegex = str_replace('\\', '/', $uriRegex); $uriRegex = '^' . $uriRegex . '/(.*)'; @@ -21,7 +18,6 @@ Dispatcher::getInstance()->setUriRegex($uriRegex) ->setThrowExceptions(true) ->setControllerFactory(WikiControllerFactory::getInstance()) - ->setRequest($request) ->dispatch($_SERVER['REQUEST_URI']); ?> \ No newline at end of file