]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseObject.php
Group selection: Respect "pubmail" and ignore atchived or blocked contacts
[friendica.git] / src / BaseObject.php
index fcec89bb4228b5f3faae23beb535b7b8aee91c79..20481884517e565123d8b17f7038a6033250525a 100644 (file)
@@ -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.');