*/
namespace Friendica;
+require_once 'boot.php';
+
+use Friendica\Network\HTTPException\InternalServerErrorException;
+
/**
* Basic object
*
* Same as get_app from boot.php
*
* @return App
+ * @throws \Exception
*/
public static function getApp()
{
if (empty(self::$app)) {
- self::$app = new App(dirname(__DIR__));
+ throw new InternalServerErrorException('App isn\'t initialized.');
}
return self::$app;