From b1b101fd98c8b4354a4e0c73e867d817466de30e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 11 Sep 2025 13:19:21 +0200 Subject: sync, rooms, events, etc --- src/Router/Router.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Router/Router.php') diff --git a/src/Router/Router.php b/src/Router/Router.php index 61abed1..534b7f7 100644 --- a/src/Router/Router.php +++ b/src/Router/Router.php @@ -59,7 +59,12 @@ class Router $class = $match["_controller"][0]; $method = $match["_controller"][1]; - return (new $class)->$method(); + $request->attributes->add(array_diff_key( + $match, + array_flip(["_controller", "_route"]) + )); + + return (new $class)->$method($request); } catch (Exception $exception) { return ErrorResponse::fromException($exception); } catch (ResourceNotFoundException $exception) { -- cgit v1.2.3