Пример #1
0
 public function handleLogout()
 {
     if ($this->getRequest()->get('logout') !== null) {
         $this->getUserService()->logout();
         //Strip the logout parameter & redirect to the original destination page
         header('Location: ' . __BASE_URL . preg_replace('/(logout&|\\?logout$|&logout$)/', '', Request::getRequestPath(__BASE, false)));
         exit;
     }
 }
Пример #2
0
 /**
  * @param string $base
  */
 public function handleRoute($base)
 {
     $this->_path = Request::getRequestPath($base);
     $this->findRoute();
 }