@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | $app = new \uSilex\Application; |
| 7 | 7 | $app['uSilex.request'] = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
| 8 | -$app['uSilex.responseEmitter'] = $app->protect( function($response) {echo $response->getBody();});
|
|
| 8 | +$app['uSilex.responseEmitter'] = $app->protect(function($response) {echo $response->getBody(); });
|
|
| 9 | 9 | $app['uSilex.httpHandler'] = function($app) {
|
| 10 | 10 | return new \Relay\Relay([new MyMiddleware($app)]); |
| 11 | 11 | }; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $app['uSilex.httpHandler'] = function($app) { |
| 60 | 60 | $piper = $app['piper']; |
| 61 | 61 | foreach ($app['handler.queue'] as $middlewareService) { |
| 62 | - $piper->pipe( $app[$middlewareService]); |
|
| 62 | + $piper->pipe($app[$middlewareService]); |
|
| 63 | 63 | } |
| 64 | 64 | return $piper; |
| 65 | 65 | }; |