X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseObject.php;h=20481884517e565123d8b17f7038a6033250525a;hb=fd706cf9a7a0c4700838a1f00b12d8fd37323b7c;hp=fcec89bb4228b5f3faae23beb535b7b8aee91c79;hpb=0a82fe4211f73cf10107feb69fe38eaa85eb61f8;p=friendica.git diff --git a/src/BaseObject.php b/src/BaseObject.php index fcec89bb42..2048188451 100644 --- a/src/BaseObject.php +++ b/src/BaseObject.php @@ -54,13 +54,13 @@ class BaseObject * * @throws InternalServerErrorException */ - protected static function getClass(string $name) + public static function getClass(string $name) { if (empty(self::$dice)) { throw new InternalServerErrorException('DICE isn\'t initialized.'); } - if (class_exists($name) || interface_exists($name )) { + if (class_exists($name) || interface_exists($name)) { return self::$dice->create($name); } else { throw new InternalServerErrorException('Class \'' . $name . '\' isn\'t valid.');