3 * @file src/BaseObject.php
7 require_once 'boot.php';
9 use Friendica\Core\Config;
10 use Friendica\Factory;
11 use Friendica\Util\BasePath;
16 * Contains what is useful to any object
20 private static $app = null;
25 * Same as get_app from boot.php
30 public static function getApp()
32 if (empty(self::$app)) {
33 $basedir = BasePath::create(dirname(__DIR__));
34 $configLoader = new Config\ConfigCacheLoader($basedir);
35 $config = Factory\ConfigFactory::createCache($configLoader);
36 $logger = Factory\LoggerFactory::create('app', $config);
37 self::$app = new App($config, $logger);
50 public static function setApp(App $app)