Skip to content

Commit

Permalink
Merge pull request #4 from morloderex/fix-internal-router
Browse files Browse the repository at this point in the history
Fix internal router request reseting.
  • Loading branch information
Mads Møller authored Jan 3, 2018
2 parents c265923 + 702ccae commit 4753ebe
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,7 @@ public function singleRequest($method, $uri, array $data = [], array $headers =

// Once the request has completed we reset the currentRequest of the router
// to match the original request.
$this->request->instance()->initialize(
$currentRequest->query->all(),
$currentRequest->request->all(),
$currentRequest->attributes->all(),
$currentRequest->cookies->all(),
$currentRequest->files->all(),
$currentRequest->server->all(),
$currentRequest->getContent()
);
$this->app->instance('request', $currentRequest);

return $response;
}
Expand Down

0 comments on commit 4753ebe

Please sign in to comment.