You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
Original Issue: zendframework/zendframework#7283
User: @27cm
Created On: 2015-03-01T10:25:28Z
Updated At: 2015-11-06T20:54:28Z
Body
I propose to rename AbstractLocation methods according to Http/Request methods: getUri() to getUriString(), uri() to getUri().
Zend/Http/Request:
/** * Return the URI for this request object * * @return HttpUri */publicfunctiongetUri()
{
if ($this->uri === null || is_string($this->uri)) {
$this->uri = newHttpUri($this->uri);
}
return$this->uri;
}
/** * Return the URI for this request object as a string * * @return string */publicfunctiongetUriString()
{
if ($this->uriinstanceof HttpUri) {
return$this->uri->toString();
}
return$this->uri;
}
Zend/Http/Header/AbstractLocation:
/** * Return the URI for this header as an instance of Zend\Uri\Http * * @return UriInterface */publicfunctionuri()
{
if ($this->uri === null || is_string($this->uri)) {
$this->uri = UriFactory::factory($this->uri);
}
return$this->uri;
}
/** * Return the URI for this header * * @return string */publicfunctiongetUri()
{
if ($this->uriinstanceof UriInterface) {
return$this->uri->toString();
}
return$this->uri;
}
Comment
User: @liufang
Created On: 2015-03-03T00:40:07Z
Updated At: 2015-03-03T00:40:07Z
Body
Retain only a geturi
This issue has been moved from the
zendframework
repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.htmlOriginal Issue: zendframework/zendframework#7283
User: @27cm
Created On: 2015-03-01T10:25:28Z
Updated At: 2015-11-06T20:54:28Z
Body
I propose to rename AbstractLocation methods according to Http/Request methods: getUri() to getUriString(), uri() to getUri().
Zend/Http/Request:
Zend/Http/Header/AbstractLocation:
Comment
User: @liufang
Created On: 2015-03-03T00:40:07Z
Updated At: 2015-03-03T00:40:07Z
Body
Retain only a geturi
$this->getUri(); //return object
(string)$this->getUri(); // string
The text was updated successfully, but these errors were encountered: