Skip to content

Commit

Permalink
Call method directly
Browse files Browse the repository at this point in the history
  • Loading branch information
mcustiel committed Aug 31, 2016
1 parent 6cca754 commit 172f542
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Server/Http/Implementation/ReactPhpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ private function onRequest(ReactRequest $request, ReactResponse $response)
$start = microtime(true);

$request->on('data', function ($data) use ($request, $response, $start) {
$convertedRequest = $this->convertFromReactToPsrRequest($request, $data);

$psrResponse = $this->requestHandler->execute(
$convertedRequest,
$this->convertFromReactToPsrRequest($request, $data),
new PsrResponse()
);

Expand Down

0 comments on commit 172f542

Please sign in to comment.