From fe7d9bbcd68660a59b813346c236b61b25a51c80 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 11 May 2023 12:53:32 +0200 Subject: Typed view model classes (#5380) * Typed view model classes * Add ability to provide a typed view model class to a controller * Use `::class` instead of string for referring to classes * Examplified with `stats` and `javascript` controllers / views (more to do) * Also useful for extensions (my usecase today), which did not have the ability to define own view model attributes before. * Typo --- app/views/stats/idle.phtml | 2 +- app/views/stats/index.phtml | 2 +- app/views/stats/repartition.phtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/stats') diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index d94256860..37cc92144 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -1,5 +1,5 @@ partial('aside_subscription'); ?> diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml index a9958ee54..f4c87315f 100644 --- a/app/views/stats/index.phtml +++ b/app/views/stats/index.phtml @@ -1,5 +1,5 @@ partial('aside_subscription'); ?> diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml index 400cdd7fa..80e3c1a6a 100644 --- a/app/views/stats/repartition.phtml +++ b/app/views/stats/repartition.phtml @@ -1,5 +1,5 @@ partial('aside_subscription'); ?> -- cgit v1.2.3