Skip to content

Commit fc17a53

Browse files
authored
always return a new instance of a cell (#8330)
1 parent ad0fb2c commit fc17a53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

system/View/Cell.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ protected function determineClass(string $library): array
181181
}
182182

183183
// locate and return an instance of the cell
184-
// @TODO extend Factories to be able to load classes with the same short name.
185-
$object = class_exists($class) ? new $class() : Factories::cells($class);
184+
$object = Factories::cells($class, ['getShared' => false]);
186185

187186
if (! is_object($object)) {
188187
throw ViewException::forInvalidCellClass($class);

0 commit comments

Comments
 (0)