Skip to content
Permalink
Browse files

Save a few function calls.

The app should always be the bottom of the chain. Thus it has no need to
invoke 'lower' layers.
  • Loading branch information...
markstory committed May 30, 2016
1 parent f9e013e commit d13a5502e142ad895a973011c35ed8fde80d90fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Http/BaseApplication.php
@@ -82,7 +82,7 @@ public function __invoke(ServerRequestInterface $request, ResponseInterface $res
$cakeResponse = $this->getDispatcher()->dispatch($cakeRequest, $cakeResponse);
// Convert the response back into a PSR7 object.
return $next($request, ResponseTransformer::toPsr($cakeResponse));
return ResponseTransformer::toPsr($cakeResponse);
}
/**

0 comments on commit d13a550

Please sign in to comment.
You can’t perform that action at this time.