Add function to fetch currect processing route

This commit is contained in:
Hannes
2022-01-02 21:59:39 +01:00
committed by GitHub
parent b5e42dbdfb
commit a1d5f38af7
+10
View File
@@ -940,6 +940,16 @@ class Router
return $this->debugList; 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. * Changes the rendering behavior of the router.
* When enabled the router will render all routes that matches. * When enabled the router will render all routes that matches.