From fc17a538cba8af78f04b3c7d81f1f3f0b2cb5782 Mon Sep 17 00:00:00 2001 From: Michal Sniatala Date: Fri, 15 Dec 2023 09:16:05 +0100 Subject: [PATCH] always return a new instance of a cell (#8330) --- system/View/Cell.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/View/Cell.php b/system/View/Cell.php index de9bbe636e4e..141ceaf32f01 100644 --- a/system/View/Cell.php +++ b/system/View/Cell.php @@ -181,8 +181,7 @@ protected function determineClass(string $library): array } // locate and return an instance of the cell - // @TODO extend Factories to be able to load classes with the same short name. - $object = class_exists($class) ? new $class() : Factories::cells($class); + $object = Factories::cells($class, ['getShared' => false]); if (! is_object($object)) { throw ViewException::forInvalidCellClass($class);