|
@@ -288,7 +288,7 @@ discard block |
|
|
block discarded – undo |
|
288
|
288
|
public function run(ServerRequestInterface $request) : ResponseInterface |
|
289
|
289
|
{ |
|
290
|
290
|
// lazy resolving of the given request... |
|
291
|
|
- $routing = new CallableRequestHandler(function (ServerRequestInterface $request) : ResponseInterface { |
|
|
291
|
+ $routing = new CallableRequestHandler(function(ServerRequestInterface $request) : ResponseInterface { |
|
292
|
292
|
return $this->match($request)->handle($request); |
|
293
|
293
|
}); |
|
294
|
294
|
|
|
@@ -318,7 +318,7 @@ discard block |
|
|
block discarded – undo |
|
318
|
318
|
{ |
|
319
|
319
|
try { |
|
320
|
320
|
return $this->handle($request); |
|
321
|
|
- } catch (MethodNotAllowedException|RouteNotFoundException $e) { |
|
|
321
|
+ } catch (MethodNotAllowedException | RouteNotFoundException $e) { |
|
322
|
322
|
$request = $request->withAttribute(self::ATTR_NAME_FOR_ROUTING_ERROR, $e); |
|
323
|
323
|
|
|
324
|
324
|
return $handler->handle($request); |
Please login to merge, or discard this patch.