eee
This commit is contained in:
+1
-6
@@ -65,12 +65,7 @@ class Request implements ServerRequestInterface
|
|||||||
*/
|
*/
|
||||||
private function __call__(string $method, ...$params): mixed
|
private function __call__(string $method, ...$params): mixed
|
||||||
{
|
{
|
||||||
if (!Context::exists(RequestInterface::class)) {
|
return \request()->{$method}(...$params);
|
||||||
$response = Context::set(RequestInterface::class, new static());
|
|
||||||
} else {
|
|
||||||
$response = Context::get(RequestInterface::class);
|
|
||||||
}
|
|
||||||
return $response->{$method}(...$params);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user