now that Http::Uri is fixed, we don't need to set the request object
This commit is contained in:
parent
d252ef0104
commit
3213010d9a
@ -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']);
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user