mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 05:38:39 +00:00
Remove path, it is part of the uri
This commit is contained in:
parent
fc8ed2166d
commit
0339d8ad44
|
|
@ -72,14 +72,6 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
*/
|
*/
|
||||||
protected $data = [];
|
protected $data = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* Request data.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
protected $path = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request type.
|
* Request type.
|
||||||
*
|
*
|
||||||
|
|
@ -208,18 +200,6 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
$this->method = $method;
|
$this->method = $method;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function getPath($key = null) /* : ?string */
|
|
||||||
{
|
|
||||||
if ($key === null) {
|
|
||||||
return $this->path;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->path[$key] ?? null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user