]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseObject.php
Fixes/tye-hints
[friendica.git] / src / BaseObject.php
index 5adfe096d7dac1df67b1c1b481e1cb90e8071533..6b64daccf0d8dbbd3bc47d75cd7964db0fbc8e28 100644 (file)
@@ -24,12 +24,10 @@ class BaseObject
         */
        public static function getApp()
        {
-               if (self::$app) {
-                       return self::$app;
+               if (empty(self::$app)) {
+                       self::$app = new App(dirname(__DIR__));
                }
 
-               self::$app = get_app();
-
                return self::$app;
        }
 
@@ -40,7 +38,7 @@ class BaseObject
         *
         * @return void
         */
-       public static function setApp($app)
+       public static function setApp(App $app)
        {
                self::$app = $app;
        }