diff --git a/system/Router/RouteCollectionInterface.php b/system/Router/RouteCollectionInterface.php index 10587d81ee4c..4fc5158611c4 100644 --- a/system/Router/RouteCollectionInterface.php +++ b/system/Router/RouteCollectionInterface.php @@ -264,4 +264,16 @@ public function isFiltered(string $search, ?string $verb = null): bool; * @return list filter_name or filter_name:arguments like 'role:admin,manager' */ public function getFiltersForRoute(string $search, ?string $verb = null): array; + + /** + * Get all controllers in Route Handlers + * + * @param string|null $verb HTTP verb like `GET`,`POST` or `*` or `CLI`. + * `'*'` returns all controllers in any verb. + * + * @return list controller name list + * + * @internal + */ + public function getRegisteredControllers(?string $verb = '*'): array; } diff --git a/system/View/RendererInterface.php b/system/View/RendererInterface.php index d42dcee88442..6116345fe2b4 100644 --- a/system/View/RendererInterface.php +++ b/system/View/RendererInterface.php @@ -71,4 +71,19 @@ public function setVar(string $name, $value = null, ?string $context = null); * @return RendererInterface */ public function resetData(); + + /** + * Returns the rendered data from all views, organized by view name. + * + * @return array + */ + public function getData(): array; + + /** + * Returns the performance data that might have been collected + * during the execution. Used by the Debug Toolbar. + * + * @return array + */ + public function getPerformanceData(): array; }