Exemplo n.º 1
0
 /**
  *  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'];
 }
Exemplo n.º 2
0
 protected function _before()
 {
     $request = new Request([], [], [], []);
     $request->setParam('drink', 'rum');
     $this->controller = new Controller($request);
 }
Exemplo n.º 3
0
 /**
  * @param $param
  * @return mixed
  */
 public function getParam($param)
 {
     return $this->_request->getParam($param);
 }