3 * @file src/BaseObject.php
7 require_once 'boot.php';
9 use Friendica\Network\HTTPException\InternalServerErrorException;
14 * Contains what is useful to any object
18 private static $app = null;
23 * Same as get_app from boot.php
28 public static function getApp()
30 if (empty(self::$app)) {
31 throw new InternalServerErrorException('App isn\'t initialized.');
44 public static function setApp(App $app)