Example #1
0
 public function run()
 {
     $webFactory = new WebFactory($GLOBALS);
     $request = $webFactory->newRequest();
     $action = $this->route($request);
     $responder = $this->dispatch($action);
     $this->respond($responder);
 }
Example #2
0
 function __construct()
 {
     $factory = new WebFactory(array('_ENV' => $_ENV, '_GET' => $_GET, '_POST' => $_POST, '_COOKIE' => $_COOKIE, '_SERVER' => $_SERVER));
     $this->request = $factory->newRequest();
 }