We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff3dd1c commit c193ce7Copy full SHA for c193ce7
1 file changed
system/View/Cell.php
@@ -178,7 +178,8 @@ protected function determineClass(string $library): array
178
}
179
180
// locate and return an instance of the cell
181
- $object = Factories::cells($class);
+ // @TODO extend Factories to be able to load classes with the same short name.
182
+ $object = class_exists($class) ? new $class() : Factories::cells($class);
183
184
if (! is_object($object)) {
185
throw ViewException::forInvalidCellClass($class);
0 commit comments