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