Jarves\PageStack::getCurrentUrl PHP Method

getCurrentUrl() public method

public getCurrentUrl ( boolean $full = false ) : string
$full boolean
return string
    public function getCurrentUrl($full = false)
    {
        return $this->getNodeUrl($this->getCurrentPage(), $full);
    }

Usage Example

Example #1
0
 /**
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function doLogout()
 {
     $this->userOperator->logout();
     return RedirectResponse::create($this->pageStack->getCurrentUrl());
 }