now that Http::Uri is fixed, we don't need to set the request object

This commit is contained in:
tmont 2008-10-15 04:50:45 +00:00
parent d252ef0104
commit 3213010d9a

View File

@ -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']);
?>