X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseObject.php;h=33ed67754674b34731bef4eab345df47be755468;hb=d8d5031935d931d1919966622dc278ff91478c50;hp=5adfe096d7dac1df67b1c1b481e1cb90e8071533;hpb=c938623a3d7e947c3b979466253ba5708af3f6b4;p=friendica.git diff --git a/src/BaseObject.php b/src/BaseObject.php index 5adfe096d7..33ed677546 100644 --- a/src/BaseObject.php +++ b/src/BaseObject.php @@ -4,8 +4,6 @@ */ namespace Friendica; -require_once 'boot.php'; - /** * Basic object * @@ -24,23 +22,21 @@ 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; } /** * Set the app * - * @param object $app App + * @param App $app App * * @return void */ - public static function setApp($app) + public static function setApp(App $app) { self::$app = $app; }