|
@@ -408,7 +408,7 @@ discard block |
|
|
block discarded – undo |
|
408
|
408
|
public function run(ServerRequestInterface $request) : ResponseInterface |
|
409
|
409
|
{ |
|
410
|
410
|
// lazy resolving of the given request... |
|
411
|
|
- $routing = new CallableRequestHandler(function (ServerRequestInterface $request) : ResponseInterface { |
|
|
411
|
+ $routing = new CallableRequestHandler(function(ServerRequestInterface $request) : ResponseInterface { |
|
412
|
412
|
$route = $this->match($request); |
|
413
|
413
|
$this->matchedRoute = $route; |
|
414
|
414
|
|
|
@@ -464,7 +464,7 @@ discard block |
|
|
block discarded – undo |
|
464
|
464
|
{ |
|
465
|
465
|
try { |
|
466
|
466
|
return $this->handle($request); |
|
467
|
|
- } catch (MethodNotAllowedException|PageNotFoundException $e) { |
|
|
467
|
+ } catch (MethodNotAllowedException | PageNotFoundException $e) { |
|
468
|
468
|
$request = $request->withAttribute(self::ATTR_NAME_FOR_ROUTING_ERROR, $e); |
|
469
|
469
|
|
|
470
|
470
|
return $handler->handle($request); |
Please login to merge, or discard this patch.