mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Change request string from hash to url
This commit is contained in:
parent
663bdca316
commit
464c2e339c
|
|
@ -75,7 +75,7 @@ class Request extends RequestAbstract
|
|||
public function __construct(Localization $l11n = null, UriInterface $uri = null)
|
||||
{
|
||||
$this->header = new Header();
|
||||
$this->header->setL11n($l11n);
|
||||
$this->header->setL11n($l11n ?? new Localization());
|
||||
|
||||
$this->uri = $uri;
|
||||
$this->source = RequestSource::WEB;
|
||||
|
|
@ -209,7 +209,7 @@ class Request extends RequestAbstract
|
|||
*/
|
||||
public function setUri(UriInterface $uri) /* : void */
|
||||
{
|
||||
$this->uri = $uri;
|
||||
parent::setUri($uri);
|
||||
$this->data += $uri->getQueryArray();
|
||||
}
|
||||
|
||||
|
|
@ -379,21 +379,6 @@ class Request extends RequestAbstract
|
|||
|| ($_SERVER['SERVER_PORT'] ?? '') == $port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stringify request.
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
$lastElement = end($this->hash);
|
||||
reset($this->hash);
|
||||
|
||||
return $lastElement;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user