Skip to content

Commit

Permalink
Http\Request compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
devosc committed Apr 1, 2018
1 parent b599820 commit f15564e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ try {

Service::service()[Arg::REQUEST] = $request;

$controller = $request->controller();
$controller = $request[Arg::CONTROLLER];

$request = $request->with(Arg::USER, Service::plugin(Arg::USER));

$controller && $result = Service::call(
$controller, [Arg::REQUEST => $request, Arg::RESPONSE => $response]
);
Expand Down

0 comments on commit f15564e

Please sign in to comment.