Web\Request: the request should know the URL
This commit is contained in:
parent
2ecdfefa85
commit
0fd4a094ea
|
@ -19,6 +19,16 @@ class Request extends Zend_Controller_Request_Http
|
||||||
*/
|
*/
|
||||||
private $user;
|
private $user;
|
||||||
|
|
||||||
|
private $url;
|
||||||
|
|
||||||
|
public function getUrl()
|
||||||
|
{
|
||||||
|
if ($this->url === null) {
|
||||||
|
$this->url = Url::fromRequest($this);
|
||||||
|
}
|
||||||
|
return $this->url;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setter for user
|
* Setter for user
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue