From a1d5f38af7c4fc5ea3411bb5ffef164d4110fe5f Mon Sep 17 00:00:00 2001 From: Hannes <31671206+xJuvi@users.noreply.github.com> Date: Sun, 2 Jan 2022 21:59:39 +0100 Subject: [PATCH] Add function to fetch currect processing route --- src/Pecee/SimpleRouter/Router.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Pecee/SimpleRouter/Router.php b/src/Pecee/SimpleRouter/Router.php index da9e06d..855f98b 100644 --- a/src/Pecee/SimpleRouter/Router.php +++ b/src/Pecee/SimpleRouter/Router.php @@ -939,6 +939,16 @@ class Router { return $this->debugList; } + + /** + * Get the current processing route details. + * + * @return array + */ + public function getCurrentProcessingRoute(): array + { + return $this->currentProcessingRoute; + } /** * Changes the rendering behavior of the router.