/** * We be needin' t' look at th' map * @param Request $request */ public function __construct(Request $request) { $this->request = $request; $this->uri = $request->getURI(); $this->controller = 'index'; $this->action = 'index'; $this->params = array(); $this->routes = array(); // get th' path 'n' query string from url $parse = parse_url($this->uri); $this->uri = $parse['path']; }
protected function _before() { $request = new Request([], [], [], []); $request->setParam('drink', 'rum'); $this->controller = new Controller($request); }
/** * @param $param * @return mixed */ public function getParam($param) { return $this->_request->getParam($param); }