X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseObject.php;h=4a6fa12d24b03ad18f4542114f1302d8a9e3573e;hb=7947db8537cacbf9d63cc320c5482e8dcef7f72a;hp=39f98a38fde061d34b6ba08c75b74569745cea53;hpb=8f9c0fe14956efbcaf0db9dbfb83222e18e0ab2f;p=friendica.git diff --git a/src/BaseObject.php b/src/BaseObject.php index 39f98a38fd..4a6fa12d24 100644 --- a/src/BaseObject.php +++ b/src/BaseObject.php @@ -6,7 +6,7 @@ namespace Friendica; require_once 'boot.php'; -use Friendica\Util\LoggerFactory; +use Friendica\Network\HTTPException\InternalServerErrorException; /** * Basic object @@ -23,12 +23,12 @@ class BaseObject * Same as get_app from boot.php * * @return App + * @throws \Exception */ public static function getApp() { if (empty(self::$app)) { - $logger = $logger = LoggerFactory::create('app'); - self::$app = new App(dirname(__DIR__), $logger); + throw new InternalServerErrorException('App isn\'t initialized.'); } return self::$app;