Browse Source

Save a few function calls.

The app should always be the bottom of the chain. Thus it has no need to
invoke 'lower' layers.
Mark Story 9 years ago
parent
commit
d13a5502e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/BaseApplication.php

+ 1 - 1
src/Http/BaseApplication.php

@@ -82,7 +82,7 @@ abstract class BaseApplication
         $cakeResponse = $this->getDispatcher()->dispatch($cakeRequest, $cakeResponse);
 
         // Convert the response back into a PSR7 object.
-        return $next($request, ResponseTransformer::toPsr($cakeResponse));
+        return ResponseTransformer::toPsr($cakeResponse);
     }
 
     /**