Web\Request: the request should know the URL

This commit is contained in:
Thomas Gelf 2014-11-15 22:40:29 +01:00
parent 2ecdfefa85
commit 0fd4a094ea
1 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,16 @@ class Request extends Zend_Controller_Request_Http
*/
private $user;
private $url;
public function getUrl()
{
if ($this->url === null) {
$this->url = Url::fromRequest($this);
}
return $this->url;
}
/**
* Setter for user
*