aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ActionController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-03-01 10:08:05 +0100
committerGravatar GitHub <noreply@github.com> 2024-03-01 10:08:05 +0100
commit96484d22a145fdef1d9002dc323f02e3b8ed2135 (patch)
tree0145aad050e55374ed0beae0edbc7556c0def7dd /app/Models/ActionController.php
parent4b29e666b06762b4b36438c9370c38bc43121f78 (diff)
Minz remove use of deprecated variable (#6132)
and related improvements to clarify inheritance Follow-up of https://github.com/FreshRSS/FreshRSS/pull/6130
Diffstat (limited to 'app/Models/ActionController.php')
-rw-r--r--app/Models/ActionController.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/ActionController.php b/app/Models/ActionController.php
index 69ee72b52..27fdfa44d 100644
--- a/app/Models/ActionController.php
+++ b/app/Models/ActionController.php
@@ -1,10 +1,14 @@
<?php
declare(strict_types=1);
-class FreshRSS_ActionController extends Minz_ActionController {
+abstract class FreshRSS_ActionController extends Minz_ActionController {
/**
* @var FreshRSS_View
*/
protected $view;
+
+ public function __construct(string $viewType = '') {
+ parent::__construct($viewType === '' ? FreshRSS_View::class : $viewType);
+ }
}