|
@@ -4,7 +4,7 @@ |
|
|
block discarded – undo |
|
4
|
4
|
include "MyMiddleware.php"; // here your MyMiddleware class definition
|
|
5
|
5
|
$app = new \uSilex\Application;
|
|
6
|
6
|
$app['uSilex.request'] = \Zend\Diactoros\ServerRequestFactory::fromGlobals();
|
|
7
|
|
-$app['uSilex.responseEmitter'] = $app->protect( function($response) {echo $response->getBody(); });
|
|
|
7
|
+$app['uSilex.responseEmitter'] = $app->protect(function($response) {echo $response->getBody(); });
|
|
8
|
8
|
$app['uSilex.httpHandler'] = function($app) {
|
|
9
|
9
|
return new \Relay\Relay([new MyMiddleware($app)]);
|
|
10
|
10
|
};
|
Please login to merge, or discard this patch.