/** * Return an md5 hash of the request uri */ public function getUrlHash() { if (!$this->request instanceof Request) { throw new \Exception("No Request object set"); } return md5($this->request->getRequestUri()); }
/** * Redirect user to login page */ public function redirectToLogin() { $params = array('controller' => 'authenticate', 'action' => 'login', 'return' => $this->request->getRequestUri()); return $this->redirectTo($params); }