Skip to content

Commit

Permalink
fix http interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lidanyang committed May 30, 2019
1 parent 9b1f49b commit fc6c78a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Core/Server/Beans/RequestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ class RequestProxy
{
public function __get($name)
{
return getDeepContextValueByClassName(AbstractRequest::class)->$name;
return getDeepContextValueByClassName(Request::class)->$name;
}

public function __set($name, $value)
{
getDeepContextValueByClassName(AbstractRequest::class)->$name = $value;
getDeepContextValueByClassName(Request::class)->$name = $value;
}

public function __call($name, $arguments)
{
return call_user_func_array([getDeepContextValueByClassName(AbstractRequest::class), $name], $arguments);
return call_user_func_array([getDeepContextValueByClassName(Request::class), $name], $arguments);
}
}
6 changes: 3 additions & 3 deletions src/Core/Server/Beans/ResponseProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ class ResponseProxy
{
public function __get($name)
{
return getDeepContextValueByClassName(AbstractResponse::class)->$name;
return getDeepContextValueByClassName(Response::class)->$name;
}

public function __set($name, $value)
{
getDeepContextValueByClassName(AbstractResponse::class)->$name = $value;
getDeepContextValueByClassName(Response::class)->$name = $value;
}

public function __call($name, $arguments)
{
return call_user_func_array([getDeepContextValueByClassName(AbstractResponse::class), $name], $arguments);
return call_user_func_array([getDeepContextValueByClassName(Response::class), $name], $arguments);
}
}

0 comments on commit fc6c78a

Please sign in to comment.