qqq
This commit is contained in:
@@ -148,9 +148,6 @@ class Uri implements UriInterface
|
|||||||
public function getPath(): string
|
public function getPath(): string
|
||||||
{
|
{
|
||||||
// TODO: Implement getPath() method.
|
// TODO: Implement getPath() method.
|
||||||
if ($this->path === 'OPTIONS') {
|
|
||||||
$this->path = '/*';
|
|
||||||
}
|
|
||||||
return $this->path;
|
return $this->path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -215,6 +215,9 @@ class RouterCollector implements \ArrayAccess, \IteratorAggregate
|
|||||||
if (!$this->methods->has($method)) {
|
if (!$this->methods->has($method)) {
|
||||||
return $this->default->get('handler');
|
return $this->default->get('handler');
|
||||||
}
|
}
|
||||||
|
if ($method === 'OPTIONS') {
|
||||||
|
$path = '/*';
|
||||||
|
}
|
||||||
$parent = $this->methods->get($method);
|
$parent = $this->methods->get($method);
|
||||||
|
|
||||||
/** @var HashMap $parent */
|
/** @var HashMap $parent */
|
||||||
|
|||||||
Reference in New Issue
Block a user