request = new Regular_Request(); $this->request->fill_with_context( $this->request_context ); // Pass Request to Router $action = $this->router->get_action( $this->request ); // Execute Action $result = $action->handle( $this ); $result->feed_consumer( $this ); } /** * @param $html */ public function consume_html( $html ) { $menu = new Menu(); $menu->run( $html ); } /** * @param string $url */ public function consume_redirect( $url ) { header( "Location: {$url}" ); exit; } }