@@ -46,15 +46,15 @@ |
||
46 | 46 | */ |
47 | 47 | public function register(Container $app) |
48 | 48 | { |
49 | - $app['uSilex.request'] = function () { |
|
49 | + $app['uSilex.request'] = function() { |
|
50 | 50 | return ServerRequestFactory::fromGlobals(); |
51 | 51 | }; |
52 | 52 | |
53 | - $app['uSilex.responseEmitter'] = $app->protect(function ($response) { |
|
53 | + $app['uSilex.responseEmitter'] = $app->protect(function($response) { |
|
54 | 54 | (new SapiStreamEmitter())->emit($response); |
55 | 55 | }); |
56 | 56 | |
57 | - $app['uSilex.exceptionHandler'] = $app->protect(function ($e) { |
|
57 | + $app['uSilex.exceptionHandler'] = $app->protect(function($e) { |
|
58 | 58 | return new TextResponse($e->getMessage(), 500); |
59 | 59 | }); |
60 | 60 | } |
@@ -46,15 +46,15 @@ |
||
46 | 46 | */ |
47 | 47 | public function register(Container $app) |
48 | 48 | { |
49 | - $app['uSilex.request'] = function () { |
|
49 | + $app['uSilex.request'] = function() { |
|
50 | 50 | return ServerRequest::fromGlobals(); |
51 | 51 | }; |
52 | 52 | |
53 | - $app['uSilex.responseEmitter'] = $app->protect(function ($response) { |
|
53 | + $app['uSilex.responseEmitter'] = $app->protect(function($response) { |
|
54 | 54 | (new SapiStreamEmitter())->emit($response); |
55 | 55 | }); |
56 | 56 | |
57 | - $app['uSilex.exceptionHandler'] = $app->protect(function ($e) { |
|
57 | + $app['uSilex.exceptionHandler'] = $app->protect(function($e) { |
|
58 | 58 | return new Response(500, [], $e->getMessage()); |
59 | 59 | }); |
60 | 60 | } |