X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseObject.php;h=4a6fa12d24b03ad18f4542114f1302d8a9e3573e;hb=ef16e1a037019e8539fa6fae5cd9242fc4162a7f;hp=4deba1ced15eba7df9c3c53f63318970502fa079;hpb=1e0e1674f2aeef54c52790946cfd61a199cb2042;p=friendica.git diff --git a/src/BaseObject.php b/src/BaseObject.php index 4deba1ced1..4a6fa12d24 100644 --- a/src/BaseObject.php +++ b/src/BaseObject.php @@ -6,9 +6,7 @@ namespace Friendica; require_once 'boot.php'; -use Friendica\Core\Config; -use Friendica\Factory; -use Friendica\Util\BasePath; +use Friendica\Network\HTTPException\InternalServerErrorException; /** * Basic object @@ -30,11 +28,7 @@ class BaseObject public static function getApp() { if (empty(self::$app)) { - $basedir = BasePath::create(dirname(__DIR__)); - $configLoader = new Config\ConfigCacheLoader($basedir); - $config = Factory\ConfigFactory::createCache($configLoader); - $logger = Factory\LoggerFactory::create('app', $config); - self::$app = new App($config, $logger); + throw new InternalServerErrorException('App isn\'t initialized.'); } return self::$app;