mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 20:08:41 +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 = [];
|
||||
|
||||
/**
|
||||
* Request data.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $path = [];
|
||||
|
||||
/**
|
||||
* Request type.
|
||||
*
|
||||
|
|
@ -208,18 +200,6 @@ abstract class RequestAbstract implements MessageInterface
|
|||
$this->method = $method;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getPath($key = null) /* : ?string */
|
||||
{
|
||||
if ($key === null) {
|
||||
return $this->path;
|
||||
}
|
||||
|
||||
return $this->path[$key] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user