public function changeUrl($url, $method = ChangeUrl::PUSH, $wait = 0)
    {
        $changeUrl = new ChangeUrl($url, $method, $wait);
        $this->register($changeUrl);

        return $changeUrl;
    }
public function changeUrl($url, $method = ChangeUrl::PUSH, $wait = 0)
    {
        $changeUrl = new ChangeUrl($url, $method, $wait);
        $this->register($changeUrl);

        return $changeUrl;
    }
public function changeUrl ( $ url , $ method = ChangeUrl :: PUSH , $ wait = 0 ) { $ changeUrl = new ChangeUrl ( $ url , $ method , $ wait ) ; $ this -> register ( $ changeUrl ) ; return $ changeUrl ; }
Create a ChangeUrl and register it to the queue

Convenience method to allow for a fluent interface

@var string $url
@var string $method push|replace|redirect
@var int $wait - wait before action
@return ChangeUrl
Create a ChangeUrl and register it to the queue