mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fixing local error for remote test
This commit is contained in:
parent
0af064eebe
commit
6ec9b7fd84
|
|
@ -83,7 +83,7 @@ class Request extends RequestAbstract
|
|||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function __construct(UriInterface $uri)
|
||||
public function __construct(UriInterface $uri = null)
|
||||
{
|
||||
$this->uri = $uri;
|
||||
$this->l11n = new Localization();
|
||||
|
|
@ -149,7 +149,7 @@ class Request extends RequestAbstract
|
|||
}
|
||||
}
|
||||
|
||||
$this->uri->set(Http::getCurrent());
|
||||
$this->uri = $this->uri ?? new Http(Http::getCurrent());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -41,16 +41,6 @@ interface UriInterface
|
|||
*/
|
||||
public static function isValid(string $uri) : bool;
|
||||
|
||||
/**
|
||||
* Set uri
|
||||
*
|
||||
* @param string $uri Uri string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function set(string $uri);
|
||||
|
||||
/**
|
||||
* Get scheme.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user