Web\Url: provide a with() function
This commit is contained in:
parent
4c8407e2b6
commit
1c2207f51d
|
@ -424,6 +424,13 @@ class Url
|
|||
return $url;
|
||||
}
|
||||
|
||||
public function with($param, $values = null)
|
||||
{
|
||||
$url = clone($this);
|
||||
$url->params->mergeValues($param, $values);
|
||||
return $url;
|
||||
}
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
$this->params = clone $this->params;
|
||||
|
|
Loading…
Reference in New Issue